mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-17 16:37:46 +00:00
12 lines
360 B
YAML
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"
|