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/postfix.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'roles/mailserver/tasks/postfix.yml') diff --git a/roles/mailserver/tasks/postfix.yml b/roles/mailserver/tasks/postfix.yml index a36acd6..7b02cf4 100644 --- a/roles/mailserver/tasks/postfix.yml +++ b/roles/mailserver/tasks/postfix.yml @@ -1,10 +1,11 @@ - name: Install Postfix and related packages - apt: pkg={{ item }} state=installed - with_items: - - libsasl2-modules - - postfix - - postfix-pcre - - sasl2-bin + apt: + state: present + name: + - libsasl2-modules + - postfix + - postfix-pcre + - sasl2-bin tags: - dependencies -- cgit v1.2.3