1
0
Fork 0
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:
Michael DeHaan 2012-10-27 18:22:16 -04:00
parent 2ae090b1db
commit 457cdb2be0

View file

@ -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: