mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Merge pull request #11735 from mscherer/fix_10273
Document and test 'is undefined' rather than 'is not defined'
This commit is contained in:
commit
c7c5b40aa8
2 changed files with 11 additions and 1 deletions
|
@ -90,7 +90,7 @@ If a required variable has not been set, you can skip or fail using Jinja2's
|
|||
when: foo is defined
|
||||
|
||||
- fail: msg="Bailing out. this play requires 'bar'"
|
||||
when: bar is not defined
|
||||
when: bar is undefined
|
||||
|
||||
This is especially useful in combination with the conditional import of vars
|
||||
files (see below).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue