Gallo
(Gallo)
1
Hey guys, i have a coreOS system running python and pip with toolbox
localhost ~ # cat /etc/rele |grep DISTRIB_RELEASE ; which python ;which pip
DISTRIB_RELEASE=1068.8.0
/opt/bin/python
/opt/bin/pip
$ ls -l
total 16
-rwxr-xr-x. 1 root root 64 Aug 6 01:05 pip
-rwxr-xr-x. 1 root root 67 Aug 6 01:04 python
however when i try to run my playbook as follow. it tells me:
No such file or directory\r\n/opt/bin/python
This is how I am running the playbook:
ansible-playbook kubctl.yml -i hosts --ask-pass -e ‘ansible_python_interpreter=“/opt/bin/python”’
Any help would be appreciated. Thanks in advance…
You can also set ansible_python_interpreter as an inventory var, if you don’t want to pass it on the command line.
Gallo
(Gallo)
3
The following helped
ansible-galaxy install defunctzombie.coreos-bootstrap
from
https://github.com/defunctzombie/ansible-coreos-bootstrap
with a slight difference:
#ansible_python_interpreter=/home/core/bin/python
ansible_python_interpreter=/root/bin/python
I have also installed pip with toolbox. getting a new error:
TASK [defunctzombie.coreos-bootstrap : Install docker-py] **********************
fatal: [x.x.x.x]: FAILED! => {“changed”: false, “cmd”: “/opt/bin/pip install docker-py”, “failed”: true, “msg”: “[Errno 8] Exec format error”, “rc”: 8}
even though i can run it on the system itself:
localhost bin # /opt/bin/pip -V
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
But thats a different thread. Thanks all