You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/gathering_facts/verify_subset.yml

14 lines
317 B
YAML

- 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']"