summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/tasks
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-05-27 18:16:57 +0800
committerQiLiang <liangqi1@huawei.com>2016-05-29 02:31:20 +0800
commitf79ca6b0696ed332dc83e46ecf7dc76a639edff8 (patch)
treef597aac19203f539f4408507356e3a563d9cca3d /deploy/adapters/ansible/roles/dashboard/tasks
parent703bb4808acc83f08917e7b8274df44b2ffd39c0 (diff)
FIX: dashboard access failure on centos
JIRA: COMPASS-407 Change-Id: Id90cc98aadff1b929e38dd681e665930f048f2ea Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/dashboard/tasks')
-rw-r--r--deploy/adapters/ansible/roles/dashboard/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
index ce4fd978..da6990c4 100644
--- a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
@@ -53,6 +53,14 @@
notify:
- restart dashboard services
+- name: update apache2 configs redhat
+ template:
+ src: openstack-dashboard-redhat.conf.j2
+ dest: '{{ apache_config_dir }}/conf.d/openstack-dashboard.conf'
+ when: ansible_os_family == 'RedHat'
+ notify:
+ - restart dashboard services
+
- name: enable dashboard
file:
src: "/etc/apache2/sites-available/openstack-dashboard.conf"