From 457cdb2be0d6aec5f8b72bee6b0afbc32fce9a05 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 27 Oct 2012 18:22:16 -0400 Subject: [PATCH] Add note about when you still have to use only_if --- examples/playbooks/conditionals_part2.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/playbooks/conditionals_part2.yml b/examples/playbooks/conditionals_part2.yml index 64b3766be6..3f673548d3 100644 --- a/examples/playbooks/conditionals_part2.yml +++ b/examples/playbooks/conditionals_part2.yml @@ -20,6 +20,10 @@ # # 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" +# +# 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: