mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
535 B
YAML
22 lines
535 B
YAML
7 years ago
|
---
|
||
|
- 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
|