Browse Source

Upgrade ZNC to 1.4

Luke Cyca 10 years ago
parent
commit
785cad2e84
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      roles/ircbouncer/tasks/znc.yml
  2. 1
    1
      vars/defaults.yml

+ 4
- 0
roles/ircbouncer/tasks/znc.yml View File

24
 
24
 
25
 - name: Build and install znc
25
 - name: Build and install znc
26
   shell: ./configure --enable-python ; make ; make install executable=/bin/bash chdir=/root/znc-{{ znc_version }} creates=/usr/local/bin/znc
26
   shell: ./configure --enable-python ; make ; make install executable=/bin/bash chdir=/root/znc-{{ znc_version }} creates=/usr/local/bin/znc
27
+  notify: restart znc
27
 
28
 
28
 - name: Create znc group
29
 - name: Create znc group
29
   group: name=znc state=present
30
   group: name=znc state=present
37
 - name: Create a combined version of the private key with public cert and intermediate + root CAs
38
 - name: Create a combined version of the private key with public cert and intermediate + root CAs
38
   shell: cat /etc/ssl/private/wildcard_private.key /etc/ssl/certs/wildcard_combined.pem >
39
   shell: cat /etc/ssl/private/wildcard_private.key /etc/ssl/certs/wildcard_combined.pem >
39
     /var/lib/znc/znc.pem creates=/var/lib/znc/znc.pem
40
     /var/lib/znc/znc.pem creates=/var/lib/znc/znc.pem
41
+  notify: restart znc
40
 
42
 
41
 - name: Ensure znc user and group can read cert
43
 - name: Ensure znc user and group can read cert
42
   file: path=/var/lib/znc/znc.pem group=znc owner=znc mode=640
44
   file: path=/var/lib/znc/znc.pem group=znc owner=znc mode=640
45
+  notify: restart znc
43
 
46
 
44
 - name: Check for existing config file
47
 - name: Check for existing config file
45
   command: cat /var/lib/znc/configs/znc.conf
48
   command: cat /var/lib/znc/configs/znc.conf
53
 - name: Copy znc configuration file into place
56
 - name: Copy znc configuration file into place
54
   template: src=var_lib_znc_configs_znc.conf.j2 dest=/var/lib/znc/configs/znc.conf owner=znc group=znc
57
   template: src=var_lib_znc_configs_znc.conf.j2 dest=/var/lib/znc/configs/znc.conf owner=znc group=znc
55
   when: znc_config.rc != 0
58
   when: znc_config.rc != 0
59
+  notify: restart znc
56
 
60
 
57
 - name: Set firewall rule for znc
61
 - name: Set firewall rule for znc
58
   ufw: rule=allow port=6697 proto=tcp
62
   ufw: rule=allow port=6697 proto=tcp

+ 1
- 1
vars/defaults.yml View File

41
 # db_admin_password: (required)
41
 # db_admin_password: (required)
42
 
42
 
43
 # ircbouncer
43
 # ircbouncer
44
-znc_version: 1.2
44
+znc_version: 1.4
45
 # irc_nick: (required)
45
 # irc_nick: (required)
46
 # irc_ident: (required)
46
 # irc_ident: (required)
47
 # irc_realname: (required)
47
 # irc_realname: (required)

Loading…
Cancel
Save