Merge "Fix ordering error enabling/disabling Apache modules"
This commit is contained in:
commit
bc053f483f
@ -32,6 +32,20 @@
|
|||||||
owner: "{{ keystone_apache_default_log_owner }}"
|
owner: "{{ keystone_apache_default_log_owner }}"
|
||||||
group: "{{ keystone_apache_default_log_grp }}"
|
group: "{{ keystone_apache_default_log_grp }}"
|
||||||
|
|
||||||
|
## NOTE(cloudnull):
|
||||||
|
## Module enable/disable process is only functional on Debian
|
||||||
|
- name: Enable apache2 modules
|
||||||
|
apache2_module:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
state: "{{ item.state }}"
|
||||||
|
with_items: "{{ keystone_apache_modules }}"
|
||||||
|
when:
|
||||||
|
- ansible_facts['pkg_mgr'] == 'apt'
|
||||||
|
- item.state == 'present'
|
||||||
|
notify:
|
||||||
|
- Manage LB
|
||||||
|
- Restart web server
|
||||||
|
|
||||||
- name: Place apache2 config files
|
- name: Place apache2 config files
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@ -45,13 +59,14 @@
|
|||||||
|
|
||||||
## NOTE(cloudnull):
|
## NOTE(cloudnull):
|
||||||
## Module enable/disable process is only functional on Debian
|
## Module enable/disable process is only functional on Debian
|
||||||
- name: Enable/disable apache2 modules
|
- name: Disable apache2 modules
|
||||||
apache2_module:
|
apache2_module:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
with_items: "{{ keystone_apache_modules }}"
|
with_items: "{{ keystone_apache_modules }}"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['pkg_mgr'] == 'apt'
|
- ansible_facts['pkg_mgr'] == 'apt'
|
||||||
|
- item.state == 'absent'
|
||||||
notify:
|
notify:
|
||||||
- Manage LB
|
- Manage LB
|
||||||
- Restart web server
|
- Restart web server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user