Browse Source

new example

master
Nicolas Massé 7 years ago
parent
commit
7cb508e36b
  1. 14
      when-quotes.yaml

14
when-quotes.yaml

@ -8,23 +8,23 @@
tasks: tasks:
- name: I'm skipped and that's ok - name: I'm skipped and that's ok
debug: fail:
msg: I'm skipped and that's ok msg: If you see this, there is something wrong
when: (a and b) or c when: (a and b) or c
- name: I'm skipped and that's ok - name: I'm skipped and that's ok
debug: fail:
msg: I'm skipped and that's ok msg: If you see this, there is something wrong
when: '(a and b) or c' when: '(a and b) or c'
- name: I'm skipped and that's ok - name: I'm skipped and that's ok
debug: fail:
msg: I'm skipped and that's ok msg: If you see this, there is something wrong
when: >- when: >-
(a and b) or c (a and b) or c
- name: I should not be there! - name: I should not be there!
fail: fail:
msg: I should not be there! msg: Quotes at the wrong place will lead to a wrong result
when: ('a and b') or 'c' when: ('a and b') or 'c'

Loading…
Cancel
Save