ajout section Migration sur HowtoAnsible
This commit is contained in:
parent
ef7e11cc0c
commit
8beef53e13
|
@ -1454,6 +1454,23 @@ Si on veut quand même avoir la sortie dans son terminal :
|
||||||
ANSIBLE_FORCE_COLOR=true ansible-playbook playbook.yml 2>&1 | tee /dev/fd/2 | aha > playbook_output.html
|
ANSIBLE_FORCE_COLOR=true ansible-playbook playbook.yml 2>&1 | tee /dev/fd/2 | aha > playbook_output.html
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Migration
|
||||||
|
|
||||||
|
### Ansible 2.7 vers 2.10
|
||||||
|
|
||||||
|
#### vérification version Debian
|
||||||
|
|
||||||
|
~~~
|
||||||
|
ansible_distribution_major_version | version_compare('11', '=')
|
||||||
|
~~~
|
||||||
|
|
||||||
|
devient :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
- ansible_distribution_major_version is version('11', '=')
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## Exemples
|
## Exemples
|
||||||
|
|
||||||
Voir [/HowtoAnsible/Exemples]().
|
Voir [/HowtoAnsible/Exemples]().
|
||||||
|
|
Loading…
Reference in a new issue