Skip to content

Instantly share code, notes, and snippets.

@leventyalcin
Created October 19, 2015 01:12
Show Gist options
  • Save leventyalcin/816d218e210242fd7790 to your computer and use it in GitHub Desktop.
Save leventyalcin/816d218e210242fd7790 to your computer and use it in GitHub Desktop.
Ansible var dump 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 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment