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