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/mailserver/tasks/dovecot.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'roles/mailserver/tasks/dovecot.yml') diff --git a/roles/mailserver/tasks/dovecot.yml b/roles/mailserver/tasks/dovecot.yml index 9d2c20e..ca62b96 100644 --- a/roles/mailserver/tasks/dovecot.yml +++ b/roles/mailserver/tasks/dovecot.yml @@ -1,10 +1,12 @@ - name: Install Dovecot and related packages - apt: pkg={{ item }} update_cache=yes state=installed - with_items: - - dovecot-core - - dovecot-imapd - - dovecot-lmtpd - - dovecot-antispam + apt: + update_cache: yes + state: present + name: + - dovecot-core + - dovecot-imapd + - dovecot-lmtpd + - dovecot-antispam tags: - dependencies -- cgit v1.2.3