diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/znc/tasks/znc.yml | 8 | ||||
-rw-r--r-- | roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/roles/znc/tasks/znc.yml b/roles/znc/tasks/znc.yml index e5f7ab5..d051f8b 100644 --- a/roles/znc/tasks/znc.yml +++ b/roles/znc/tasks/znc.yml @@ -1,7 +1,7 @@ # more or less as per http://wiki.znc.in/Running_ZNC_as_a_system_daemon - name: Install znc - apt: pkg={{ item }} state=installed + apt: pkg={{ item }} state=installed repo=jessie-backports with_items: - znc @@ -34,7 +34,7 @@ - name: Update post-certificate-renewal task template: src: etc_letsencrypt_postrenew_znc.sh.j2 - dest: /etc/letsencrypt/postrenew/znc.sh + dest: /etc/cron.weekly/znc-letsencrypt-postrenew.sh owner: root group: root mode: 0755 @@ -57,9 +57,5 @@ when: znc_config.rc != 0 notify: restart znc -- name: Set firewall rule for znc - ufw: rule=allow port=6697 proto=tcp - tags: ufw - - name: Ensure znc is a system service service: name=znc state=restarted enabled=true diff --git a/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 b/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 index 1ff626b..65e94e3 100644 --- a/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 +++ b/roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 @@ -37,7 +37,7 @@ Version = 1.0 IPv4 = true IPv6 = true Port = 6643 - SSL = false + SSL = true </Listener> <User {{ irc_nick }}> |