spark/facts.yml
2026-04-10 15:49:13 -07:00

12 lines
360 B
YAML

---
- name: Gather and display Ansible facts
hosts: localhost
tasks:
- name: Print ansible_facts
ansible.builtin.debug:
var: ansible_facts
- name: Save ansible_facts to /tmp/ansible_facts.json
ansible.builtin.copy:
content: "{{ ansible_facts | to_nice_json }}"
dest: /tmp/ansible_facts.json
mode: "0644"