95655fae5c
* configurable list of facts modules - allow for args dict for specific modules - add way to pass parameters - avoid facts poluting test - move to 'facts gathered' flag - add 'gathering' setting tests
14 lines
365 B
YAML
14 lines
365 B
YAML
- hosts: testhost
|
|
tasks:
|
|
- name: ensure facts have not been collected
|
|
assert:
|
|
that:
|
|
- ansible_facts is undefined or not 'fqdn' in ansible_facts
|
|
|
|
- hosts: testhost
|
|
gather_facts: True
|
|
tasks:
|
|
- name: ensure facts have been collected
|
|
assert:
|
|
that:
|
|
- ansible_facts is defined and 'fqdn' in ansible_facts
|