22
0
Fork 0

ajout infos sur bug bizarre de path Python

This commit is contained in:
Gregory Colpart 2018-12-24 22:02:13 +01:00
parent 7b8299d947
commit 5c5163aa93
1 changed files with 19 additions and 0 deletions

View File

@ -1246,6 +1246,25 @@ Un cas concret :
when: ansible_distribution_version | version_compare("5.6",'<')
~~~
### Erreur : /usr/local/bin/python2.7: not found
Si vous obtenez une erreur du type :
~~~
$ ansible -m ping foo
foo | FAILED! => {
"changed": false,
"failed": true,
"module_stderr": "/bin/sh: 1: /usr/local/bin/python2.7: not found\n",
"module_stdout": "",
"msg": "MODULE FAILURE"
}
~~~
Pour une raison inconnue, Ansible détecte mal le chemin vers Python.
Vous pouvez le forcer en utilisant l'option `-e 'ansible_python_interpreter=/usr/bin/python2.7'`.
## Exemples
Voir [/HowtoAnsible/Exemples]().