summaryrefslogtreecommitdiff
path: root/test/integration/targets/set_fact/set_fact_no_cache.yml
blob: 3dffb65f5505a0571a0881905459869c0dda7504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- 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