From 100ff5863931f0870360d0bc2ec503443521742d Mon Sep 17 00:00:00 2001 From: jdubois Date: Wed, 30 Jun 2021 15:50:22 +0200 Subject: [PATCH] =?UTF-8?q?M=C3=A0J=20version=20python=20OpenBSD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoAnsible.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 4826e625..e6506116 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -1198,7 +1198,7 @@ et surcharger la variable `ansible_python_interpreter` dans le fichier _inventor serveur.example.com [openbsd:vars] -ansible_python_interpreter=/usr/local/bin/python3.7 +ansible_python_interpreter=/usr/local/bin/python3.9 ~~~ ### Ansible Vault via GPG @@ -1273,7 +1273,7 @@ Un cas concret : when: ansible_distribution_version | version_compare("5.6",'<') ~~~ -### Erreur : /usr/local/bin/python2.7: not found +### Erreur : /usr/local/bin/python3.9: not found Si vous obtenez une erreur du type : @@ -1282,14 +1282,14 @@ $ ansible -m ping foo foo | FAILED! => { "changed": false, "failed": true, - "module_stderr": "/bin/sh: 1: /usr/local/bin/python2.7: not found\n", + "module_stderr": "/bin/sh: 1: /usr/local/bin/python3.9: 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'`. +Vous pouvez le forcer en utilisant l'option `-e 'ansible_python_interpreter=/usr/bin/python3.9'`. ### Export HTML d'un playbook