Re: [ansible-project] 'Odd' Behavior with Role Dependencies when using import_role

2021-03-17 Thread Matt Martz
You didn't make it easy to reproduce, but I think I created a reproducer. Based on my reproducer, your issue has been fixed in https://github.com/ansible/ansible/pull/72208 On Wed, Mar 17, 2021 at 3:31 PM Todd Beauchemin wrote: > We've seen what we'd classify as odd behavior when using import_ro

[ansible-project] 'Odd' Behavior with Role Dependencies when using import_role

2021-03-17 Thread Todd Beauchemin
We've seen what we'd classify as odd behavior when using import_role with roles that have dependencies defined under the meta directory. The version of Ansible we are running is 2.9.10. We have a few roles setup as follows - base_role - Does some basic setup of directories for storing

Re: [ansible-project] How to improve the readability of block scalars when used with jinja

2021-03-17 Thread Matt Martz
See https://jinja.palletsprojects.com/en/master/templates/#whitespace-control On Wed, Mar 17, 2021 at 1:56 PM jean-christophe manciot < actionmysti...@gmail.com> wrote: > Hello everyone. > Block scalars are described here . > > The goal is to be improve the readabili

[ansible-project] How to improve the readability of block scalars when used with jinja

2021-03-17 Thread jean-christophe manciot
Hello everyone. Block scalars are described here . The goal is to be improve the readability of the following block scalar example and obtain the intended value for the variable: ``` - set_fact: variable: "{% if condition_1 is true %}{% if condition_2 is tru

[ansible-project] Handling Oracle Dataguard failover/failback

2021-03-17 Thread Alex Wanderley
Hello, Is there anybody out there using Ansible playbooks to handle Oracle Dataguard's failover and failback operations? We are working on automating the OS update process of Linux servers that host Dataguard pairs (they are not in the cloud) and that requires rebooting each primary/standby wi

Re: [ansible-project] ssh root access remain closed

2021-03-17 Thread Brian Coca
To verify permissions for the login user use `sudo -l ` this does NOT require root logins. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [ansible-project] Error reading config file (/etc/ansible/ansible.cfg): Source contains parsing errors: '' [line 4]: ' 3 \n' #601

2021-03-17 Thread Emiliano Vazquez
> > > "msg": "Failed to connect to the host via ssh: root@192.168.1.115: > Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", > "unreachable": true > please first try to connect over ssh without asking password On your host running ansible try this: *ssh root@192.168

Re: [ansible-project] ssh root access remain closed

2021-03-17 Thread Mike Eggleston
The thing that works for me is: $ ansible all -m command -a ’sudo uptime’ -o I get no errors and I get a response from all my servers. > On Mar 17, 2021, at 03:05, Michael Barber wrote: > > This is more of a Unix question than an ansible question. > > Your login ID should not be root. > Your

Re: [ansible-project] Inject vault password with plugin

2021-03-17 Thread Vladimir Botka
On Tue, 16 Mar 2021 17:17:44 -0700 (PDT) "david@estafet.com" wrote: > ... inject an 'ansible vault' password during a play. FWIW, below is the scenario how to put the vault password into a file only when you need it. Given the vault password is stored in *passwordstore*, create two templates

Re: [ansible-project] ssh root access remain closed

2021-03-17 Thread Michael Barber
This is more of a Unix question than an ansible question. Your login ID should not be root. Your sudo file ,on destination host, should have your login ID defined with appropriate permissions. Use ssh keys for your login ID Hope this helps. On Wed, Mar 17, 2021 at 03:37 reredok wrote: > Hello,

Re: [ansible-project] ssh root access remain closed

2021-03-17 Thread reredok
Hello, i tried everything possible with "become" in the playbook: Either the password is wrong or a password is needed. To rule out that I have a problem with root, I temporarily set PermitRootLogin Yes in /etc/ssh/sshd_config and then it works. I have looked at the ansible documentation whic