mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-22 18:14:16 +00:00
add ansible_facts dump
Useful for seeing what Ansible knows about the system.
$ ansible-playbook -i localhost facts.yml
$ less /tmp/ansible_facts.json
This commit is contained in:
parent
79e261bd84
commit
aa9255b16e
1 changed files with 10 additions and 0 deletions
10
facts.yml
Normal file
10
facts.yml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue