|
@@ -5,6 +5,18 @@
|
5
|
5
|
with_items:
|
6
|
6
|
- znc
|
7
|
7
|
|
|
8
|
+- name: Create znc group
|
|
9
|
+ group: name=znc state=present
|
|
10
|
+
|
|
11
|
+- name: Create znc user
|
|
12
|
+ user: name=znc state=present home=/var/lib/znc system=yes group=znc shell=/usr/sbin/nologin
|
|
13
|
+
|
|
14
|
+- name: Ensure pid directory exists
|
|
15
|
+ file: state=directory path=/var/run/znc group=znc owner=znc
|
|
16
|
+
|
|
17
|
+- name: Copy znc service file into place
|
|
18
|
+ copy: src=etc_systemd_system_znc.service dest=/etc/systemd/system/znc.service mode=0644
|
|
19
|
+
|
8
|
20
|
- name: Create a combined version of the private key with public cert and intermediate + root CAs
|
9
|
21
|
shell: cat /etc/ssl/private/wildcard_private.key /etc/ssl/certs/wildcard_combined.pem >
|
10
|
22
|
/usr/lib/znc/znc.pem creates=/usr/lib/znc/znc.pem
|
|
@@ -33,4 +45,4 @@
|
33
|
45
|
tags: ufw
|
34
|
46
|
|
35
|
47
|
- name: Ensure znc is a system service
|
36
|
|
- service: name=znc state=started enabled=true
|
|
48
|
+ service: name=znc state=restarted enabled=true
|