If anything changes, notify all handlers

This commit is contained in:
Jason Rothstein 2022-01-30 21:41:18 -06:00
parent aa8b1bb570
commit 507bd00b99

View File

@ -45,6 +45,11 @@
loop: '{{ ensure_apache.sysctl_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.value }}'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure packages'
when:
- ansible_system == 'Linux'
@ -61,6 +66,8 @@
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure seboolean'
when:
- ansible_system == 'Linux'
@ -74,6 +81,11 @@
loop: '{{ ensure_apache.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'
@ -114,6 +126,11 @@
loop: '{{ ensure_apache.firewall_list }}'
loop_control:
label: '{{ item.service }} will be {{ item.state }}'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'base mod_md store'
when:
- ansible_system == 'Linux'
@ -127,6 +144,11 @@
path: '/etc/httpd/md'
state: 'directory'
setype: 'httpd_var_lib_t'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure vhost document roots'
when:
- ansible_system == 'Linux'
@ -141,6 +163,11 @@
loop: '{{ http_vhost }}'
loop_control:
label: '/srv/http/{{ item.fqdn }} will be ensured'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure website content from git repos'
when:
- ansible_system == 'Linux'
@ -156,6 +183,11 @@
loop: '{{ http_vhost }}'
loop_control:
label: '/srv/http/{{ item.fqdn }} will be populated...'
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'ensure services'
when:
- ansible_system == 'Linux'
@ -172,5 +204,7 @@
notify:
- 'ensure_apache.package_facts'
- 'ensure_apache.service_facts'
- 'ensure_apache.service_reload'
- 'ensure_apache.services'
- name: 'flush handlers'
meta: 'flush_handlers'