Hi.
I am trying to install a package on an AWS Ubuntu machine using ansible and
getting error
FAILED! => {"msg": "Timeout (42s) waiting for privilege escalation prompt:
"}
I have tried with high timeouts as suggested online. The package I am
trying to install is docker and so it should take much time.
Moreover, I am watching the file /var/log/auth.log while I run the playbook
but cannot see any activity.
*I am able to do non-sudo actions however.*
My ansible playbook is as follows
- hosts: '{{ host }}'
tasks:
- name: run lsb_releaset to check SSH works
shell: lsb_release -a
- name: Install docker if not already
become: yes
become_method: su
package:
name: "docker-ce"
state: present
And my hosts file is as
[node]
<IP of the machine>
[node:vars]
ansible_ssh_user=ubuntu
ansible_ssh_private_key_file=<my pem file location>
I am running ansible as
ansible-playbook -i hosts playbook.yml --extra-vars "host=node" -T 40 -v
--
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 email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2136f78e-71a4-49f4-a465-6d32901e3c05n%40googlegroups.com.