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: