Hi!

I am not having luck defining which python to use when using local_action 
or delegate_to: localhost. I am on devel at this commit 
(6292520c45905a01da4de9aaf0c5ce30bbd195a0). Since my project is fairly 
complex, I tried using the integration test (test_delegate_to) and ran into 
the same issue:

----snip------

$ make test_delegate_to
ansible-playbook test_delegate_to.yml -i inventory -e 
@integration_config.yml  -v
Using /etc/ansible/ansible.cfg as config file

PLAY 
***************************************************************************

TASK [setup] 
*******************************************************************
fatal: [testhost3]: FAILED! => {"changed": false, "failed": true, "msg": "  
File \"/home/an
drew/.ansible/tmp/ansible-tmp-1444536975.16-137980495534712/setup\", line 
2183\r\n    excep
t ValueError, e:\r\n                     ^\r\nSyntaxError: invalid 
syntax\r\n", "parsed": f
alse}

NO MORE HOSTS LEFT 
*************************************************************

PLAY RECAP 
*********************************************************************
testhost3                  : ok=0    changed=0    unreachable=0    failed=1

Makefile:94: recipe for target 'test_delegate_to' failed
make: *** [test_delegate_to] Error 2


----end snip----


----snip----

$ git diff
diff --git a/test/integration/inventory b/test/integration/inventory
index bee36ce..0ea1a00 100644
--- a/test/integration/inventory
+++ b/test/integration/inventory
@@ -3,7 +3,7 @@ testhost ansible_ssh_host=127.0.0.1 ansible_connection=local
 testhost2 ansible_ssh_host=127.0.0.1 ansible_connection=local
 # For testing delegate_to
 testhost3 ansible_ssh_host=127.0.0.3
-testhost4 ansible_ssh_host=127.0.0.4
+testhost4 ansible_ssh_host=127.0.0.4 
ansible_python_interpreter=/usr/bin/python2

 # the following inline declarations are accompanied
 # by (preferred) group_vars/ and host_vars/ variables

----end snip----

Can someone point me in the right direction?

Thanks!

-- 
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/408ad872-974c-4eaa-84ea-1fdb9d1e82ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to