MàJ version python OpenBSD

This commit is contained in:
jdubois 2021-06-30 15:50:22 +02:00
parent e2654aa1b9
commit 100ff58639

View file

@ -1198,7 +1198,7 @@ et surcharger la variable `ansible_python_interpreter` dans le fichier _inventor
serveur.example.com serveur.example.com
[openbsd:vars] [openbsd:vars]
ansible_python_interpreter=/usr/local/bin/python3.7 ansible_python_interpreter=/usr/local/bin/python3.9
~~~ ~~~
### Ansible Vault via GPG ### Ansible Vault via GPG
@ -1273,7 +1273,7 @@ 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 ### Erreur : /usr/local/bin/python3.9: not found
Si vous obtenez une erreur du type : Si vous obtenez une erreur du type :
@ -1282,14 +1282,14 @@ $ ansible -m ping foo
foo | FAILED! => { foo | FAILED! => {
"changed": false, "changed": false,
"failed": true, "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": "", "module_stdout": "",
"msg": "MODULE FAILURE" "msg": "MODULE FAILURE"
} }
~~~ ~~~
Pour une raison inconnue, Ansible détecte mal le chemin vers Python. 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 ### Export HTML d'un playbook