From 01ea6828ec433ba41515e95fe3cf282278fc89bc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 22 Sep 2019 14:32:01 +0800 Subject: mail: Use 'service' module instead of 'rcreload' command --- roles/mail/handlers/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'roles/mail/handlers/main.yml') diff --git a/roles/mail/handlers/main.yml b/roles/mail/handlers/main.yml index 3e97a1d..32f29c6 100644 --- a/roles/mail/handlers/main.yml +++ b/roles/mail/handlers/main.yml @@ -1,12 +1,18 @@ --- - name: reload-opendkim - command: rcreload milter-opendkim + service: + name: milter-opendkim + state: reloaded - name: reload-postfix - command: rcreload postfix + service: + name: postfix + state: reloaded - name: reload-dovecot - command: rcreload dovecot + service: + name: dovecot + state: reloaded - name: update-aliases command: postalias /etc/mail/aliases -- cgit v1.2.2