Skip to content

Instantly share code, notes, and snippets.

@dmsimard dmsimard/main
Created Jan 13, 2016

Embed
What would you like to do?
- name: Capture facts for output to file
setup:
register: ansible_facts
- name: Output facts to file
copy:
content: "{{ ansible_facts | to_nice_json }}"
dest: "./before.txt"
- set_fact:
one_fact: something
- name: Capture facts for output to file
setup:
register: ansible_facts
- name: Output facts to file
copy:
content: "{{ ansible_facts | to_nice_json }}"
dest: "./after.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.