summaryrefslogtreecommitdiffstats
path: root/test/schemas/test/playbooks/tasks/changed_when.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/schemas/test/playbooks/tasks/changed_when.yml')
-rw-r--r--test/schemas/test/playbooks/tasks/changed_when.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/schemas/test/playbooks/tasks/changed_when.yml b/test/schemas/test/playbooks/tasks/changed_when.yml
new file mode 100644
index 0000000..7887ac7
--- /dev/null
+++ b/test/schemas/test/playbooks/tasks/changed_when.yml
@@ -0,0 +1,10 @@
+- command: echo 123
+ changed_when: false
+
+- command: echo 123
+ changed_when: '"1" in ["1", "2", "3"]'
+
+- command: echo 123
+ changed_when: # valid, all items must evaluate as true (AND)
+ - "foo is defined"
+ - '"1" in ["1", "2", "3"]'