Thanks Brian. I should've indicated that I'm running this on localhost

$ ansible-playbook -i "localhost," test-expect.yml

I added the 

ansible_python_interpreter: python2.7

in my playbook and it worked for now. For some reason, this "{{ 
ansible_playbook_python 
}}" didn't work for me, but I'll debug that next.

On Monday, May 14, 2018 at 12:11:43 PM UTC-4, Brian Coca wrote:

> It requires it on the machine and python the module executes on, use 
> -vvv to verify you are matching both, by default the implicit 
> localhost should ensure that they are the same as you expect, but if 
> you added localhost to your inventory you might be using a different 
> python 
> http://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html 
>
> ---------- 
> Brian Coca 
>

-- 
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/c05872ec-3279-4019-b1fe-8d2fac76d793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to