From 4559c7ad7172e6d42a51666f7f498e3d334f1036 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 12 Nov 2016 19:48:59 -0800 Subject: commit ZNC config stuff (old) --- roles/znc/tasks/znc.yml | 8 ++------ roles/znc/templates/usr_lib_znc_configs_znc.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'roles') 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 -- cgit v1.2.3