On Wed, Feb 6, 2019 at 9:29 AM Diptajeet Khan <[email protected]> wrote:

> I see. Can you also try "brew install pexpect" and run the Ansible code.
>

Found it! By default, Ansible uses a particular path for finding the Python
interpreter it uses to run the playbooks. This turned out to be different
from the interpreter on which I had isntalled pexpect.

I fixed the issue by passing the following argument to my ansible-playbook
command:

       -e 'ansible_python_interpreter=/path/to/my/python

Alain

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADhJcXOoOoPWOgseK%2BnyOABhSNr1FfJhKxpjj740hpGyiWTEWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to