Browse Source

dovecot reload handler

master
parent
commit
2e76129e3b
2 changed files with 8 additions and 0 deletions
  1. +4
    -0
      handlers/main.yml
  2. +4
    -0
      tasks/main.yml

+ 4
- 0
handlers/main.yml View File

@@ -0,0 +1,4 @@
- name: reload dovecot
systemd:
name: dovecot
state: reloaded

+ 4
- 0
tasks/main.yml View File

@@ -11,6 +11,8 @@
template: template:
src: dovecot.conf.j2 src: dovecot.conf.j2
dest: /etc/dovecot/dovecot.conf dest: /etc/dovecot/dovecot.conf
notify:
- reload dovecot


- name: dovecot configuration files - name: dovecot configuration files
template: template:
@@ -18,6 +20,8 @@
dest: /etc/dovecot/conf.d/{{ item }} dest: /etc/dovecot/conf.d/{{ item }}
with_items: with_items:
- 10-mail.conf - 10-mail.conf
notify:
- reload dovecot


- name: configuration pull directory - name: configuration pull directory
local_action: file local_action: file


Loading…
Cancel
Save