summaryrefslogtreecommitdiffstats
path: root/test/schemas/test/playbooks/tasks/when.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/schemas/test/playbooks/tasks/when.yml')
-rw-r--r--test/schemas/test/playbooks/tasks/when.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/schemas/test/playbooks/tasks/when.yml b/test/schemas/test/playbooks/tasks/when.yml
new file mode 100644
index 0000000..7874329
--- /dev/null
+++ b/test/schemas/test/playbooks/tasks/when.yml
@@ -0,0 +1,10 @@
+- action: foo
+ when: true # valid
+
+- action: foo 2
+ when: foo in bar # valid
+
+- action: foo 3
+ when: # valid
+ - foo in bar
+ - apple is orange