From b3b5129cc4f0e75f786a3bbdcbfcd773c5d3e5a8 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 13 Nov 2020 18:24:23 +0100 Subject: [PATCH] mail: use list instead of with_items --- roles/mail/tasks/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index a7180d0..698b7ad 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -7,23 +7,23 @@ apt_repository: repo="deb http://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main" - name: Install packages - apt: name={{ item }} - with_items: - - bsd-mailx - - dovecot-core - - dovecot-imapd - - dovecot-lmtpd - - dovecot-ldap - - dovecot-managesieved - - dovecot-sieve - - fcgiwrap - - mailman - - mailman3 - - postfix - - postsrsd - - redis-server - - redis-tools - - rspamd + apt: + name: + - bsd-mailx + - dovecot-core + - dovecot-imapd + - dovecot-lmtpd + - dovecot-ldap + - dovecot-managesieved + - dovecot-sieve + - fcgiwrap + - mailman + - mailman3 + - postfix + - postsrsd + - redis-server + - redis-tools + - rspamd - name: Create vmail group group: name=vmail gid=500 state=present