diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..cf6ce72 --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,4 @@ +- name: reload dovecot + systemd: + name: dovecot + state: reloaded diff --git a/tasks/main.yml b/tasks/main.yml index 10ab315..112fc74 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,6 +11,8 @@ template: src: dovecot.conf.j2 dest: /etc/dovecot/dovecot.conf + notify: + - reload dovecot - name: dovecot configuration files template: @@ -18,6 +20,8 @@ dest: /etc/dovecot/conf.d/{{ item }} with_items: - 10-mail.conf + notify: + - reload dovecot - name: configuration pull directory local_action: file