If anything changes, notify all handlers

This commit is contained in:
Jason Rothstein 2022-01-30 21:39:31 -06:00
parent 08005d5724
commit 351cffc637

View File

@ -45,6 +45,11 @@
loop: '{{ ensure_dovecot.sysctl_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.value }}'
notify:
- 'ensure_dovecot.package_facts'
- 'ensure_dovecot.service_facts'
- 'ensure_dovecot.service_reload'
- 'ensure_dovecot.services'
- name: 'ensure packages'
when:
- ansible_system == 'Linux'
@ -61,6 +66,8 @@
notify:
- 'ensure_dovecot.package_facts'
- 'ensure_dovecot.service_facts'
- 'ensure_dovecot.service_reload'
- 'ensure_dovecot.services'
- name: 'ensure seboolean'
when:
- ansible_system == 'Linux'
@ -74,15 +81,11 @@
loop: '{{ ensure_dovecot.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: 'mkdir certificates'
when:
- ansible_system == 'Linux'
- ensure_dovecot is defined
- ensure_dovecot.template_list is defined
- ensure_dovecot.template_list is iterable
ansible.builtin.file:
path: '/etc/dovecot/certificates'
state: 'directory'
notify:
- 'ensure_dovecot.package_facts'
- 'ensure_dovecot.service_facts'
- 'ensure_dovecot.service_reload'
- 'ensure_dovecot.services'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'
@ -123,6 +126,11 @@
loop: '{{ ensure_dovecot.firewall_list }}'
loop_control:
label: '{{ item.service }} will be {{ item.state }}'
notify:
- 'ensure_dovecot.package_facts'
- 'ensure_dovecot.service_facts'
- 'ensure_dovecot.service_reload'
- 'ensure_dovecot.services'
- name: 'ensure services'
when:
- ansible_system == 'Linux'
@ -139,5 +147,7 @@
notify:
- 'ensure_dovecot.package_facts'
- 'ensure_dovecot.service_facts'
- 'ensure_dovecot.service_reload'
- 'ensure_dovecot.services'
- name: 'flush handlers'
meta: 'flush_handlers'