How to change the python path of the target machine when running ansible?

1,511 views
Skip to first unread message

Sivaram Kannan

unread,
Jan 4, 2016, 10:11:35 AM1/4/16
to Ansible Project

Hi,

I am testing ansible in CoreOS. I kind of set it up with pypy and it works. When I run a ping of a remote machine "ansible all -m ping" - I am getting the below error.

msg": "/bin/sh: /usr/bin/python: No such file or directory\r\nOpenSSH_6.9p1, OpenSSL 1.0.2e 3 Dec 2015\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: mux_client_request_session: master session id: 2\r\nShared connection to 17.1.1.1 closed.\r\n"

The python path is in /opt/bin/python( this is pypy link ). Is there any way I can specify python path while running ansible?

Thanks,
./Siva.

Matt Martz

unread,
Jan 4, 2016, 10:26:48 AM1/4/16
to ansible...@googlegroups.com
You will need to set the ansible_python_interpreter for those hosts pointing to the correct python binary.  See the following FAQ for more info:


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4521bb4f-d981-4a0d-9a46-b5cde3d5b9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages