Disable cinder api apache config in distro install
The Ubuntu cinder-api package installs apache and enables an apache configuration for the cinder-api. Disable the configuration to avoid a conflict OSA's cinder-api service installation. Change-Id: I695b405dfd13351b352106ae01847f163905c4b1
This commit is contained in:
parent
86a5ddc49c
commit
236ff01c1d
|
@ -72,3 +72,19 @@
|
|||
mode: "0440"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
||||
- name: Disable cinder-wsgi apache2 configuration
|
||||
command: a2disconf cinder-wsgi
|
||||
args:
|
||||
removes: "/etc/apache2/conf-enabled/cinder-wsgi.conf"
|
||||
when:
|
||||
- cinder_install_method == 'distro'
|
||||
- ansible_pkg_mgr == 'apt'
|
||||
- "cinder_services['cinder-api']['group'] in group_names"
|
||||
register: cinder_wsgi_conf_disable
|
||||
|
||||
- name: Reload apache2
|
||||
service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
when: cinder_wsgi_conf_disable is changed
|
||||
|
|
Loading…
Reference in New Issue