summaryrefslogtreecommitdiffstats
path: root/roles/znc/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/znc/tasks/main.yml')
-rw-r--r--roles/znc/tasks/main.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/znc/tasks/main.yml b/roles/znc/tasks/main.yml
new file mode 100644
index 0000000..bf3d3ff
--- /dev/null
+++ b/roles/znc/tasks/main.yml
@@ -0,0 +1,30 @@
+---
+
+- name: Install znc
+ package:
+ name: znc
+ state: present
+
+- name: Install certbot hook
+ copy:
+ src: znc-certbot-hook
+ dest: /etc/letsencrypt/renewal-hooks/deploy/znc
+ owner: root
+ group: root
+ mode: 0755
+
+- name: Copy nginx conf file
+ template:
+ src: znc_nginx.conf.j2
+ dest: /etc/nginx/nginx.d/znc.conf
+ mode: 0644
+ owner: "root"
+ group: "root"
+ notify:
+ - reload nginx
+
+- name: Enable znc
+ service:
+ name: znc.service
+ state: started
+ enabled: yes