summaryrefslogtreecommitdiffstats
path: root/roles/common
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-08 00:51:50 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:44 +0200
commitb25fb1e7ea764de149f5c6604455436b7a819f06 (patch)
tree528a8660f7c062e35ccfa1b045822faea5feae6d /roles/common
parentf4f99dfdfcd0651f4365ab41716beffc1f147e35 (diff)
Postfix needs to be restarted after rekeying.
(It opens the key as root, but then drops the permissions.)
Diffstat (limited to 'roles/common')
-rw-r--r--roles/common/tasks/mail.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/common/tasks/mail.yml b/roles/common/tasks/mail.yml
index 009c4c6..e51dfef 100644
--- a/roles/common/tasks/mail.yml
+++ b/roles/common/tasks/mail.yml
@@ -61,6 +61,8 @@
register: r4
changed_when: r4.rc == 0
failed_when: r4.rc > 1
+ notify:
+ - Restart Postfix
tags:
- genkey
@@ -113,6 +115,6 @@
- name: Start Postfix
service: name=postfix state=started
- when: not (r1.changed or r2.changed or r3.changed)
+ when: not (r1.changed or r2.changed or r3.changed or r4.changed)
- meta: flush_handlers