Skip to content

Instantly share code, notes, and snippets.

@dekimsey
Created September 1, 2017 18:14
Show Gist options
  • Save dekimsey/583f3ad9b1ac91bfc76ca16eed83bacc to your computer and use it in GitHub Desktop.
Save dekimsey/583f3ad9b1ac91bfc76ca16eed83bacc to your computer and use it in GitHub Desktop.
# 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