-
Notifications
You must be signed in to change notification settings - Fork 5
/
debug.yml
31 lines (28 loc) · 906 Bytes
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- name: dump all
hosts: all
gather_facts: no
tasks:
- name: Print some debug information
vars:
msg: |
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 }}
debug:
msg: "{{ msg.split('\n') }}"
tags: debug_info