From 8974dd5f9351c666a1144b0584189d3a07c62351 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 5 Aug 2017 13:05:26 -0700 Subject: znc: split jessie/non-jessie install repo --- roles/znc/tasks/znc.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3