diff --git a/facts.yml b/facts.yml new file mode 100644 index 0000000..89354c5 --- /dev/null +++ b/facts.yml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + tasks: + - name: Print ansible_facts + debug: + var: ansible_facts + - name: Save ansible_facts to /tmp/ansible_facts.json + copy: + content: "{{ ansible_facts|to_nice_json }}" + dest: /tmp/ansible_facts.json