User Tools

Site Tools


ansible:dump_all_vars

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ansible:dump_all_vars [2019/10/15 10:54] (current)
adyxax created
Line 1: Line 1:
 +====== Dump all vars ======
  
 +Task to use
 +<​code>​
 +- name: Dump all vars
 +  action: template src=dumpall.j2 dest=ansible.all
 +</​code>​
 +
 +dumpall.j2 template :
 +<​code>​
 +Module Variables ("​vars"​):​
 +--------------------------------
 +{{ vars | to_nice_json }}
 +
 +Environment Variables ("​environment"​):​
 +--------------------------------
 +{{ environment | to_nice_json }}
 +
 +GROUP NAMES Variables ("​group_names"​):​
 +--------------------------------
 +{{ group_names | to_nice_json }}
 +
 +GROUPS Variables ("​groups"​):​
 +--------------------------------
 +{{ groups | to_nice_json }}
 +
 +HOST Variables ("​hostvars"​):​
 +--------------------------------
 +{{ hostvars | to_nice_json }}
 +</​code>​
ansible/dump_all_vars.txt ยท Last modified: 2019/10/15 10:54 by adyxax