forked from ansible/test-playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
use_facts.yml
61 lines (60 loc) · 1.11 KB
/
use_facts.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
- hosts: all
gather_facts: false
tasks:
- debug:
msg: '{{ansible_distribution}}'
tags:
- ansible_facts
- debug:
msg: '{{ansible_machine}}'
tags:
- ansible_facts
- debug:
msg: '{{ansible_system}}'
tags:
- ansible_facts
- debug:
msg: '{{ansible_date_time.time}}'
tags:
- ansible_facts
- debug:
msg: '{{string}}'
tags:
- custom_facts
- debug:
msg: '{{unicode_string}}'
tags:
- custom_facts
- debug:
msg: '{{int}}'
tags:
- custom_facts
- debug:
msg: '{{float}}'
tags:
- custom_facts
- debug:
msg: '{{bool}}'
tags:
- custom_facts
- debug:
msg: '{{null}}'
tags:
- custom_facts
- debug:
msg: '{{list}}'
tags:
- custom_facts
- debug:
msg: '{{obj}}'
tags:
- custom_facts
- debug:
msg: '{{empty_list}}'
tags:
- custom_facts
- debug:
msg: '{{empty_obj}}'
tags:
- custom_facts