spark/facts.yml
Pig Monkey aa9255b16e add ansible_facts dump
Useful for seeing what Ansible knows about the system.

    $ ansible-playbook -i localhost facts.yml
    $ less /tmp/ansible_facts.json
2025-01-09 18:08:40 -08:00

10 lines
250 B
YAML

---
- 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