MàJ version python OpenBSD
This commit is contained in:
parent
e2654aa1b9
commit
100ff58639
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue