Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Created October 29, 2021 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aussielunix/79a6f0c735f3f3c8a42d18a91e4a43dd to your computer and use it in GitHub Desktop.
Save aussielunix/79a6f0c735f3f3c8a42d18a91e4a43dd to your computer and use it in GitHub Desktop.
Ansible playbook that prints out all vars available during a play
---
- name: dump all
hosts: all
gather_facts: false
tasks:
- name: debug | vars
debug:
var: vars
- name: debug | environment
debug:
var: environment
- name: debug | group_names
debug:
var: group_names
- name: debug | groups
debug:
var: groups
- name: debug | hostvars
debug:
var: hostvars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment