Ansible Password-less sudo

It gets tricky when you have to escalate an user and the machine doesn’t require a password as such. ‘become’, ‘become_pass’ or anything does not work. You might encounter this error :

“Timeout (62s) waiting for privilege escalation prompt:”

in those cases try using :

sudo: yes

And dont club it with anything else. Hope it works !

Advertisements