ajout exemple tester variable vide
This commit is contained in:
parent
ebb66df709
commit
586d6a20c5
|
@ -1109,6 +1109,16 @@ echo "VAULT_PASSWORD" | gpg -e -o ~/.ansible/vault.gpg
|
|||
|
||||
Ansible va maintenant automatiquement déchiffrer les fichiers Vault via votre agent GPG et le fichier `~/.ansible/vault.gpg`.
|
||||
|
||||
## Exemples
|
||||
|
||||
### Tester si une variable est vide
|
||||
|
||||
~~~
|
||||
- debug:
|
||||
msg: "La variable n'a pas de description"
|
||||
when: var.description == none
|
||||
~~~
|
||||
|
||||
## Ressources utiles
|
||||
|
||||
* [Documentation officielle](http://docs.ansible.com/ansible/) (voir notamment la partie [Best Practices](http://docs.ansible.com/ansible/playbooks_best_practices.html))
|
||||
|
|
Loading…
Reference in a new issue