mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
22 lines
546 B
YAML
22 lines
546 B
YAML
|
---
|
||
|
- name: A second playbook run with fact caching enabled
|
||
|
hosts: localhost
|
||
|
tasks:
|
||
|
- name: show ansible_foobar fact
|
||
|
debug:
|
||
|
var: ansible_foobar
|
||
|
|
||
|
- name: assert ansible_foobar is correct value when read from cache
|
||
|
assert:
|
||
|
that:
|
||
|
- ansible_foobar == 'blippy'
|
||
|
|
||
|
- 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
|