Debian Codegraph @

test/integration/targets/gathering_facts/verify_subset.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 tasks:
4 - name: bad subset used
5 setup: gather_subset=nonsense
6 register: bad_sub
7 ignore_errors: true
8
9 - name: verify we fail the right way
10 assert:
11 that:
12 - bad_sub is failed
13 - bad_sub.msg is match "Bad subset 'nonsense' given to Ansible"