aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/znc/tasks/znc.yml8
-rw-r--r--roles/znc/templates/usr_lib_znc_configs_znc.conf.j22
-rw-r--r--vars/robocracy.yml8
3 files changed, 11 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 }}>
diff --git a/vars/robocracy.yml b/vars/robocracy.yml
index c9623f6..00cad92 100644
--- a/vars/robocracy.yml
+++ b/vars/robocracy.yml
@@ -1,5 +1,6 @@
main_user_name: "bnewbold"
+domain: "robocracy.org"
email_domain: "robocracy.org"
admin_email: "root@robocracy.org"
friendly_networks:
@@ -23,3 +24,10 @@ nginx_default_50x: files/robocracy_50x.html
nginx_default_index: files/robocracy_index.html
nginx_default_robots: files/robocracy_robots.txt
#nginx_default_favicon: nginx_default_favicon.png
+
+irc_nick: "{{ main_user_name }}"
+irc_ident: "{{ main_user_name }}"
+irc_realname: "{{ main_user_name }}"
+irc_quitmsg: "Bye!"
+irc_password_hash: "{{ vault_irc_password_hash }}"
+irc_password_salt: "{{ vault_irc_password_salt }}"