ajout infos sur bug bizarre de path Python
This commit is contained in:
parent
7b8299d947
commit
5c5163aa93
|
@ -1246,6 +1246,25 @@ Un cas concret :
|
||||||
when: ansible_distribution_version | version_compare("5.6",'<')
|
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
|
## Exemples
|
||||||
|
|
||||||
Voir [/HowtoAnsible/Exemples]().
|
Voir [/HowtoAnsible/Exemples]().
|
||||||
|
|
Loading…
Reference in a new issue