Debian Codegraph @

test/integration/targets/set_fact/set_fact_no_cache.yml

raw
1 ---
2 - name: Running with fact caching enabled but with cache flushed
3 hosts: localhost
4 tasks:
5 - name: show ansible_foobar fact
6 debug:
7 var: ansible_foobar
8
9 - name: assert ansible_foobar is correct value
10 assert:
11 that:
12 - ansible_foobar is undefined
13
14 - name: show ansible_foobar_not_cached fact
15 debug:
16 var: ansible_foobar_not_cached
17
18 - name: assert ansible_foobar_not_cached is not cached
19 assert:
20 that:
21 - ansible_foobar_not_cached is undefined
22
23 - name: show ansible_foobar fact (FQCN)
24 debug:
25 var: ansible_foobar_fqcn
26
27 - name: assert ansible_foobar is correct value (FQCN)
28 assert:
29 that:
30 - ansible_foobar_fqcn is undefined
31
32 - name: show ansible_foobar_not_cached fact (FQCN)
33 debug:
34 var: ansible_foobar_fqcn_not_cached
35
36 - name: assert ansible_foobar_not_cached is not cached (FQCN)
37 assert:
38 that:
39 - ansible_foobar_fqcn_not_cached is undefined