mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Add note about when you still have to use only_if
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user