![]() SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/my_username/. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py I tried setting becomeflags -H -S in ansible.cfg, but then I got the message 'Timeout (12s) waiting for privilege escalation prompt:' Basically, AWX really, really wants to enter a password for sudo whether one is needed or not. Task path: /home/my_username/ansible/playbooks/apt-dist-upgrade.yml:3 But if I try to run the same command through AWX, it fails with the message 'Missing sudo password'. Stop it with CTRL-c, then execute the playbook with -K and the appropriate password. If you run a playbook utilizing become and the playbook seems to hang, most likely it is stuck at the privilege escalation prompt. Error message: fatal: > Missing sudo password. I am trying to run a command using Ansible as providing sudo password but it. Ansible asks for sudo password from following code, it tries to create a new postgres user. When I downgrade to v2.8.6 everything is working again. Parsed /home/my_username/ansible/inventory inventory source with ini plugin Script declined parsing /home/my_username/ansible/inventory as it did not pass its verify_file() methodĪuto declined parsing /home/my_username/ansible/inventory as it did not pass its verify_file() method Problem: Every time I run my ansible-playbook command I am prompted for a ssh and become password. This way I dont need to type them in when using the parameters -ask-become-pass or the ssh password. Host_list declined parsing /home/my_username/ansible/inventory as it did not pass its verify_file() method I would like to use ansible vault passwords for the ssh and become passwords when running ansible-playbook. Using /home/my_username/ansible/ansible.cfg as config file It is quite simple to resolve by configuring sudoers. ![]() Config file = /home/my_username/ansible/ansible.cfgĬonfigured module search path = Īnsible python module location = /usr/lib/python2.7/dist-packages/ansibleĮxecutable location = /usr/bin/ansible-playbook As already mentioned within the comments this is nothing related to Ansible itself, but to Managing sudo access.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |