summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/gathering/explicit.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/gathering/explicit.yml')
-rw-r--r--test/integration/targets/gathering/explicit.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/gathering/explicit.yml b/test/integration/targets/gathering/explicit.yml
new file mode 100644
index 0000000..453dfb6
--- /dev/null
+++ b/test/integration/targets/gathering/explicit.yml
@@ -0,0 +1,14 @@
+- 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