Quellcode durchsuchen

ufw tasks shall have the ufw tag

resolves #453

Conflicts:
	roles/common/tasks/ufw.yml
Sebastian Kriems vor 9 Jahren
Ursprung
Commit
fe536873b7

+ 7
- 1
roles/common/tasks/ufw.yml Datei anzeigen

@@ -6,15 +6,19 @@
6 6
   apt: pkg=ufw state=present
7 7
   tags:
8 8
     - dependencies
9
+    - ufw
9 10
 
10 11
 - name: Deny everything
11 12
   ufw: policy=deny
13
+  tags: ufw
12 14
 
13 15
 - name: Set firewall rule for DNS
14 16
   ufw: rule=allow port=domain
17
+  tags: ufw
15 18
 
16 19
 - name: Set firewall rule for mosh
17 20
   ufw: rule=allow port=60000:61000 proto=udp
21
+  tags: ufw
18 22
 
19 23
 - name: Set firewall rules for web traffic and SSH
20 24
   ufw: rule=allow port={{ item }} proto=tcp
@@ -22,12 +26,14 @@
22 26
     - http
23 27
     - https
24 28
     - ssh
29
+  tags: ufw
25 30
 
26 31
 - name: Enable UFW
27 32
   ufw: state=enabled
33
+  tags: ufw
28 34
 
29 35
 - name: Check config of ufw
30 36
   command: cat /etc/ufw/ufw.conf
31 37
   register: ufw_config
32 38
   changed_when: False  # never report as "changed"
33
-
39
+  tags: ufw

+ 1
- 0
roles/ircbouncer/tasks/znc.yml Datei anzeigen

@@ -30,6 +30,7 @@
30 30
 
31 31
 - name: Set firewall rule for znc
32 32
   ufw: rule=allow port=6697 proto=tcp
33
+  tags: ufw
33 34
 
34 35
 - name: Ensure znc is a system service
35 36
   service: name=znc state=started enabled=true

+ 1
- 0
roles/mailserver/tasks/dovecot.yml Datei anzeigen

@@ -67,3 +67,4 @@
67 67
   with_items:
68 68
     - imaps
69 69
     - pop3s
70
+  tags: ufw

+ 1
- 0
roles/mailserver/tasks/postfix.yml Datei anzeigen

@@ -68,3 +68,4 @@
68 68
   with_items:
69 69
     - smtp
70 70
     - ssmtp
71
+  tags: ufw

+ 1
- 0
roles/vpn/tasks/openvpn.yml Datei anzeigen

@@ -135,6 +135,7 @@
135 135
 
136 136
 - name: Allow OpenVPN through ufw
137 137
   ufw: rule=allow port={{ openvpn_port }} proto={{ openvpn_protocol }}
138
+  tags: ufw
138 139
 
139 140
 - name: Copy OpenVPN configuration file into place
140 141
   template: src=etc_openvpn_server.conf.j2 dest=/etc/openvpn/server.conf

+ 1
- 0
roles/xmpp/tasks/prosody.yml Datei anzeigen

@@ -35,3 +35,4 @@
35 35
   with_items:
36 36
     - 5222  # xmpp c2s
37 37
     - 5269  # xmpp s2s
38
+  tags: ufw

Laden…
Abbrechen
Speichern