aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2015-09-23 14:23:44 +0800
committerbaigk <baiguoku@huawei.com>2015-09-24 00:22:30 +0800
commit5dcc94014a588e6f7bb5cb605b164609ac0b50c7 (patch)
tree1027a92382ed4a3c96c0bb2ec84ec1fdfd8e8b93 /deploy/adapters/ansible/roles/dashboard/tasks/main.yml
parent7d95e981d3685795620443083385e00ab1ccd3f0 (diff)
bug fix: using external_vip as linked dashboard ip
JIRA: COMPASS-72 Change-Id: I9ab8f6042635a7a06f1a4e2fb3222f790a5bee76 Signed-off-by: baigk <baiguoku@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/dashboard/tasks/main.yml')
-rw-r--r--deploy/adapters/ansible/roles/dashboard/tasks/main.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
index 9206fda4..dd5c6fd0 100644
--- a/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
@@ -1,13 +1,20 @@
---
- include_vars: "{{ ansible_os_family }}.yml"
+- name: install http packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items: http_packages
+
+- name: set http config
+ lineinfile: dest={{ http_config_file }} regexp='^Listen 80' line='Listen {{ internal_ip }}:80'
+
+- name: restart http services
+ service: name={{ http_service }} state=restarted enabled=yes
+
- name: install dashboard packages
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
with_items: packages | union(packages_noarch)
-- name: set apache2 config
- template: src=ports.j2 dest=/etc/apache2/ports.conf backup=yes
-
- name: remove ubuntu theme
action: "{{ ansible_pkg_mgr }} name=openstack-dashboard-ubuntu-theme state=absent"