summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/set_fact/set_fact_no_cache.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/set_fact/set_fact_no_cache.yml')
-rw-r--r--test/integration/targets/set_fact/set_fact_no_cache.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/integration/targets/set_fact/set_fact_no_cache.yml b/test/integration/targets/set_fact/set_fact_no_cache.yml
new file mode 100644
index 0000000..f5a9979
--- /dev/null
+++ b/test/integration/targets/set_fact/set_fact_no_cache.yml
@@ -0,0 +1,39 @@
+---
+- name: Running with fact caching enabled but with cache flushed
+ hosts: localhost
+ tasks:
+ - name: show ansible_foobar fact
+ debug:
+ var: ansible_foobar
+
+ - name: assert ansible_foobar is correct value
+ assert:
+ that:
+ - ansible_foobar is undefined
+
+ - name: show ansible_foobar_not_cached fact
+ debug:
+ var: ansible_foobar_not_cached
+
+ - name: assert ansible_foobar_not_cached is not cached
+ assert:
+ that:
+ - ansible_foobar_not_cached is undefined
+
+ - name: show ansible_foobar fact (FQCN)
+ debug:
+ var: ansible_foobar_fqcn
+
+ - name: assert ansible_foobar is correct value (FQCN)
+ assert:
+ that:
+ - ansible_foobar_fqcn is undefined
+
+ - name: show ansible_foobar_not_cached fact (FQCN)
+ debug:
+ var: ansible_foobar_fqcn_not_cached
+
+ - name: assert ansible_foobar_not_cached is not cached (FQCN)
+ assert:
+ that:
+ - ansible_foobar_fqcn_not_cached is undefined