From b25fb1e7ea764de149f5c6604455436b7a819f06 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 8 Jul 2014 00:51:50 +0200 Subject: Postfix needs to be restarted after rekeying. (It opens the key as root, but then drops the permissions.) --- roles/common/tasks/mail.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roles/common') 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 -- cgit v1.2.3