summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/gathering_facts/verify_subset.yml
blob: 89132756ea735f1e9bb31557aa30024a5ac09525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- hosts: localhost
  gather_facts: false
  tasks:
    - name: bad subset used
      setup: gather_subset=nonsense
      register: bad_sub
      ignore_errors: true

    - name: verify we fail the right way
      assert:
        that:
          - bad_sub is failed
          - "'MODULE FAILURE' not in bad_sub['msg']"