aboutsummaryrefslogtreecommitdiffstats
path: root/roles/znc
diff options
context:
space:
mode:
Diffstat (limited to 'roles/znc')
-rw-r--r--roles/znc/tasks/znc.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/znc/tasks/znc.yml b/roles/znc/tasks/znc.yml
index d051f8b..ecb6103 100644
--- a/roles/znc/tasks/znc.yml
+++ b/roles/znc/tasks/znc.yml
@@ -1,10 +1,17 @@
# more or less as per http://wiki.znc.in/Running_ZNC_as_a_system_daemon
-- name: Install znc
+- name: Install znc (jessie-backports)
+ when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "8")
apt: pkg={{ item }} state=installed repo=jessie-backports
with_items:
- znc
+- name: Install znc (non-jessie)
+ when: not (ansible_distribution == "Debian" and ansible_distribution_major_version == "8")
+ apt: pkg={{ item }} state=installed
+ with_items:
+ - znc
+
- name: Create znc group
group: name=znc state=present