diff options
author | Bryan Newbold <bnewbold@archive.org> | 2017-08-05 13:05:26 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2017-08-05 13:05:26 -0700 |
commit | 8974dd5f9351c666a1144b0584189d3a07c62351 (patch) | |
tree | 8c9b72ba84100a0b4ae8bbcd27c28b4d4ea472cf /roles/znc | |
parent | 894667793292570db71c0d43dcc852efac8e49f5 (diff) | |
download | infra-8974dd5f9351c666a1144b0584189d3a07c62351.tar.gz infra-8974dd5f9351c666a1144b0584189d3a07c62351.zip |
znc: split jessie/non-jessie install repo
Diffstat (limited to 'roles/znc')
-rw-r--r-- | roles/znc/tasks/znc.yml | 9 |
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 |