From 5c5163aa93fce31fe27c1aa858bf7c2f50b9e3b8 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 24 Dec 2018 22:02:13 +0100 Subject: [PATCH] ajout infos sur bug bizarre de path Python --- HowtoAnsible.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 69838dcf..3009f6e7 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -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]().