mirror of https://github.com/ansible/ansible.git
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.
15 lines
580 B
YAML
15 lines
580 B
YAML
5 years ago
|
- name: Ensure clean_facts is working properly
|
||
|
hosts: facthost1
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- name: gather 'bad' facts
|
||
|
action: bogus_facts
|
||
|
|
||
|
- name: ensure that the 'bad' facts didn't polute what they are not supposed to
|
||
|
assert:
|
||
|
that:
|
||
|
- "'touch' not in discovered_interpreter_python|default('')"
|
||
|
- "'touch' not in ansible_facts.get('discovered_interpreter_python', '')"
|
||
|
- "'touch' not in ansible_facts.get('ansible_facts', {}).get('discovered_interpreter_python', '')"
|
||
|
- bogus_overwrite is undefined
|