Created
September 1, 2017 18:14
-
-
Save dekimsey/583f3ad9b1ac91bfc76ca16eed83bacc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ansible-playbook -i localhost, ./demo-facts-lifetime.yml | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Facts gathereed OK | |
debug: | |
var: ansible_date_time.epoch | |
- name: Sleep for a few seconds | |
command: sleep 2 | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Facts from previous run OK | |
debug: | |
var: ansible_date_time.epoch | |
- name: Sleep for 4s | |
command: sleep 4 | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Facts from previous run NOT OK | |
debug: | |
var: ansible_date_time.epoch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment