ansible/test/integration/targets/set_fact/set_fact_cached_2.yml
Adrian Likins 51315c498d Add intg tests for some of the issues in 32302 (#32360)
Verify that set_fact's var_prec is correct and that
regular facts var_prec is correct (ie, that play_vars
can override them)
2017-12-19 22:34:05 -06:00

21 lines
570 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 == 'foobar_from_set_fact_cacheable'
- 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