From 2e76129e3b74b8930bc6566bf1c5343cfb2fa631 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 14 Sep 2017 10:51:08 +0000 Subject: [PATCH] dovecot reload handler --- handlers/main.yml | 4 ++++ tasks/main.yml | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 handlers/main.yml 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