From 5d201f7d9b55ff50753da2456634a3e51462ba1f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 Jun 2022 20:57:51 -0700 Subject: refactor 'apt' tasks to newer syntax (not 'with_items') --- roles/znc/tasks/znc.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'roles/znc/tasks') 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 -- cgit v1.2.3