Debian Codegraph @

test/integration/targets/conditionals/broken_conditionals.yml

raw
1 - hosts: testhost
2 gather_facts: no
3 vars:
4 allow_broken_conditionals: "{{ lookup('config', 'ALLOW_BROKEN_CONDITIONALS') }}"
5 tasks:
6 - name: use a conditional with a static non-boolean result
7 assert:
8 that: "'broken static'"
9 ignore_errors: yes
10 register: result
11
12 - assert:
13 that: result.failed != allow_broken_conditionals