-
Notifications
You must be signed in to change notification settings - Fork 1
/
cheat_sheet.yml
38 lines (27 loc) · 893 Bytes
/
cheat_sheet.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
32
33
34
35
36
37
38
---
- hosts: all
tasks:
- name: ansible_hostname output
debug: msg="{{ansible_hostname}}"
- name: ansible_default_ipv4 output
debug: msg="{{ansible_default_ipv4}}"
- name: ansible_env output
debug: msg="{{ansible_env}}"
- name: inventory_file output
debug: msg="{{inventory_file}}"
- name: inventory_dir output
debug: msg="{{inventory_dir}}"
- name: inventory_hostname output
debug: msg="{{inventory_hostname}}"
- name: inventory_hostname_short output
debug: msg="{{inventory_hostname_short}}"
- name: group_names output
debug: msg="{{group_names}}"
- name: groups output
debug: msg="{{groups}}"
- name: play_hosts output
debug: msg="{{play_hosts}}"
- name: environment output
debug: msg="{{environment}}"
- name: hostvars output
debug: msg="{{hostvars}}"