mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add note about when you still have to use only_if
This commit is contained in:
parent
2ae090b1db
commit
457cdb2be0
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@
|
||||||
#
|
#
|
||||||
# when using 'when', take care to make sure any variables given are surrounded by spaces
|
# when using 'when', take care to make sure any variables given are surrounded by spaces
|
||||||
# as an example, $z>3 will not do what you want, use "$z > 3"
|
# as an example, $z>3 will not do what you want, use "$z > 3"
|
||||||
|
#
|
||||||
|
# note, if you are doing comparisons to variables that are stored as hashes or lists,
|
||||||
|
# you will need to use the older 'only_if', which is more free form.
|
||||||
|
# see conditionals_part_3.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue