Created
October 29, 2021 22:09
-
-
Save aussielunix/79a6f0c735f3f3c8a42d18a91e4a43dd to your computer and use it in GitHub Desktop.
Ansible playbook that prints out all vars available during a play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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