aboutsummaryrefslogtreecommitdiffstats
path: root/roles/znc/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/znc/tasks')
-rw-r--r--roles/znc/tasks/znc.yml8
1 files changed, 2 insertions, 6 deletions
diff --git a/roles/znc/tasks/znc.yml b/roles/znc/tasks/znc.yml
index ecb6103..a320041 100644
--- a/roles/znc/tasks/znc.yml
+++ b/roles/znc/tasks/znc.yml
@@ -2,15 +2,11 @@
- 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
+ apt: name=znc state=present repo=jessie-backports
- name: Install znc (non-jessie)
when: not (ansible_distribution == "Debian" and ansible_distribution_major_version == "8")
- apt: pkg={{ item }} state=installed
- with_items:
- - znc
+ apt: name=znc state=present
- name: Create znc group
group: name=znc state=present