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
365 B
YAML
15 lines
365 B
YAML
6 years ago
|
- 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
|