Work in progress

This site is currently undergoing an update. If you spot any problems on this page, please let me know.

Ansible and pam-ssh-agent-auth

When using ansible 2.0 with pam-ssh-agent-auth, I got this error:

sudo: a password is required

I eventually tracked down this, and the fix was to add the following to my ansible.cfg file:

<br /> [defaults]<br /> sudo_flags=-H -S<br />

Hopefully this saves somebody else the troubleā€¦

Posted on: March 09, 2016
Previous post: O2 DE Multicard Cheat Sheet
Next post: Click here



Ankur Garg at 2016-06-26 12:18:29

After made above changes now I am getting below mentioned error can you please advise me on that error:- fatal: []: FAILED! =&gt; {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "}

Mason at 2016-05-02 09:33:49

Yes, that tip DID save me a lot of time debugging why our automation was failing, but only against local VMWare Fusion development VMs, after upgrading to Ansible 2. Thanks!

Ansible playbook: unable to connect | ASK Dev Archives at 2017-05-12 04:56:15

[&#8230;] I tried this solution by adding [&#8230;]