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:
Jimmy McCrory 2018-10-30 14:30:54 -07:00
parent 86a5ddc49c
commit 236ff01c1d
1 changed files with 16 additions and 0 deletions

View File

@ -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