Revert "Configurable list of facts modules (#31783)" (#40022)

This reverts commit 95655fae5c.
This commit is contained in:
Toshio Kuratomi
2018-05-14 13:46:14 -07:00
committed by Matt Davis
parent abb353290c
commit 38ab36a625
12 changed files with 3 additions and 173 deletions

View File

@@ -1,23 +0,0 @@
- hosts: testhost
tasks:
- name: check that facts were gathered but no local facts exist
assert:
that:
- ansible_facts is defined and 'fqdn' in ansible_facts
- not 'uuid' in ansible_local
- name: create 'local facts' for next gathering
copy:
src: uuid.fact
dest: /etc/ansible/facts.d/
mode: 0755
- hosts: testhost
tasks:
- name: ensure facts are gathered and includes the new 'local facts' created above
assert:
that:
- ansible_facts is defined and 'fqdn' in ansible_facts
- "'uuid' in ansible_local"
- name: cleanup 'local facts' from target
file: path=/etc/ansible/facts.d/uuid.fact state=absent