diff --git a/tasks/main.yml b/tasks/main.yml index 74fbb0f..dd6ff77 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'