forked from iiab/iiab
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.yml
58 lines (46 loc) · 1.38 KB
/
test.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
# TEST ANSIBLE COMMANDS/MODULES IN SECONDS -- BY RUNNING:
# ansible-playbook -i ansible_hosts test.yml --connection=local
- hosts: all
become: yes # Optional privilege escalation
#vars_files:
#- roles/0-init/defaults/main.yml
#- vars/default_vars.yml
#- vars/{{ ansible_local.local_facts.os_ver }}.yml
#- /etc/iiab/local_vars.yml
#- /etc/iiab/iiab_state.yml
#roles:
# - { role: 0-init }
tasks:
#- include_role:
# name: 0-init
- debug:
msg: "{{ 'changeme' | password_hash('sha512') }}"
# msg: "{{ 'changeme' | password_hash('yescrypt') }}" # crypt.crypt STILL doesn't support 'yescrypt' algorithm ?
#- pause:
- name: DOUBLE UP to escape single quotes... '"''"' e.g. iiab.ini Munin description
debug:
msg: '"''"' # FAILS: '"\'"'
- name: BACKSLASH to escape double quotes... "'\"'" e.g. cups/tasks/install.yml
debug:
msg: "'\"'" # FAILS: "'""'"
- name: a shows "VARIABLE IS NOT DEFINED!" -- whereas b (w/o whitespace) AND c (with space) AND d (with tab) show null (without quotes!) -- whereas d (singlequotes) and e (doublequotes) show "" empty string
set_fact:
#a:
b:
c: # Space
d: # Tab
e: ''
f: ""
- debug:
var: a
- debug:
var: b
- debug:
var: c
- debug:
var: d
- debug:
var: e
- debug:
var: f
# TEST ANSIBLE COMMANDS/MODULES HERE!