1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/gathering/explicit.yml
Brian Coca 8940732b58
Configurable and parallel gather facts (#49399)
* Configurable list of facts modules (#31783)

 - 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
 - allow parallel option in case serialization is too slow
 - added support to automatically map network facts
   uses "smart" connection mapping
2019-03-08 13:08:37 -05:00

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