Hi all.
I am very new to Ansible and installed version 1.5 yesterday on Arch Linux using the package provided by the distribution.
I started trying to connect to a solaris node that has /usr/bin/python, I tried to set a variable in the “hosts” inventory:
goast06 ansible_python_interpreter=/usr/bin/python
But launching a simple ping, this setting seems to be ignored (the ping is successful since I made a symlink python2 → python)
`
ansible -k -vvvv goast06 -m ping
SSH password:
ESTABLISH CONNECTION FOR USER: root
REMOTE_MODULE ping
EXEC [‘sshpass’, ‘-d6’, ‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘GSSAPIAuthentication=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘goast06’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1393920144.19-66127382946581 && echo $HOME/.ansible/tmp/ansible-tmp-1393920144.19-66127382946581’”]
PUT /tmp/tmpC2ljll TO //.ansible/tmp/ansible-tmp-1393920144.19-66127382946581/ping
EXEC [‘sshpass’, ‘-d6’, ‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘GSSAPIAuthentication=no’, ‘-o’, ‘PubkeyAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘goast06’, “/bin/sh -c ‘/usr/bin/python2 //.ansible/tmp/ansible-tmp-1393920144.19-66127382946581/ping; rm -rf //.ansible/tmp/ansible-tmp-1393920144.19-66127382946581/ >/dev/null 2>&1’”]
goast06 | success >> {
“changed”: false,
“ping”: “pong”
}
`
I never tried the feature before, so I am not sure where to start for a debug.
What am I doing wrong? Could this be an issue in the Arch Linux package?
Thank you