User Tools

Site Tools


ansible:dump_all_vars

Dump all vars

Task to use

- name: Dump all vars
  action: template src=dumpall.j2 dest=ansible.all

dumpall.j2 template :

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 }}
ansible/dump_all_vars.txt · Last modified: 2019/10/15 10:54 by adyxax