-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yml
56 lines (48 loc) · 1.25 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
---
- name: Juggling the port and gather no facts is off
hosts: picluster
become: yes
gather_facts: no
pre_tasks:
- name: Importing the task to juggle ports
import_tasks: tasks/ssh_juggle_port.yml
tags:
- always
- port
- ssh
- name: Run very essential tasks against server to ensure success of subsequent runs
ansible.builtin.import_tasks: tasks/essential.yml
tags:
- always
tags:
- all
- name: Implement basic security and prepare the system for docker specific tasks
hosts: picluster
become: yes
gather_facts: yes
pre_tasks:
- name: Making sure the correct port is set
import_tasks: tasks/ensure_ssh_port.yml
tags:
- port
roles:
- role: network/pidns
tags:
- pihole
- containers
- docker
- network
when: enable_pidns | default (False)
# - role: system/essential
# tags:
# - system
# when: enable_essential | default(False)
# - role: security/iptables
# tags:
# - iptables
# - security
# when: (enable_iptables | default(False)) and (security_ssh_port == ansible_ssh_port | default(False))
# - role: system/docker
# tags:
# - docker
# when: enable_docker | default(False)