aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-22 14:32:01 +0800
committerAaron LI <aly@aaronly.me>2019-09-22 14:32:01 +0800
commit01ea6828ec433ba41515e95fe3cf282278fc89bc (patch)
tree85f9faec479983a4e433afd28db0042ed9732af3 /roles
parent6407b6ec147951aaaded89a553dc9a81f49100ec (diff)
downloadansible-dfly-vps-01ea6828ec433ba41515e95fe3cf282278fc89bc.tar.bz2
mail: Use 'service' module instead of 'rcreload' command
Diffstat (limited to 'roles')
-rw-r--r--roles/mail/handlers/main.yml12
1 files changed, 9 insertions, 3 deletions
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