From a7681c5c70cc9cedf57b3be980971361d5b4a10d Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 18 Sep 2017 10:24:45 +0000 Subject: [PATCH] postfix reload handler --- handlers/main.yml | 4 ++++ tasks/main.yml | 1 + tasks/postfixadmin.yml | 1 + 3 files changed, 6 insertions(+) create mode 100644 handlers/main.yml diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..81e6b13 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,4 @@ +- name: reload postfix + service: + name: postfix + state: reloaded diff --git a/tasks/main.yml b/tasks/main.yml index 6f71080..2d0d12a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,6 +11,7 @@ template: src: main.cf.j2 dest: /etc/postfix/main.cf + notify: reload postfix - include: postfixadmin.yml diff --git a/tasks/postfixadmin.yml b/tasks/postfixadmin.yml index 2e561c7..6be93b7 100644 --- a/tasks/postfixadmin.yml +++ b/tasks/postfixadmin.yml @@ -21,6 +21,7 @@ - mysql_virtual_alias_domain_mailbox_maps.cf - mysql_virtual_alias_maps.cf - mysql_virtual_mailbox_limit_maps.cf + notify: reload postfix - name: postfixadmin mysql user mysql_user: