aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
blob: 2cad11744ea8c499261a103c3cf6897db4c4c5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- include_vars: "{{ ansible_os_family }}.yml"

- name: install dashboard packages
  action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
  with_items: packages | union(packages_noarch)

- name: remove ubuntu theme
  action: "{{ ansible_pkg_mgr }} name=openstack-dashboard-ubuntu-theme state=absent"

- name: update horizon settings
  template: src=local_settings.py
            dest=/etc/openstack-dashboard/local_settings.py
            backup=yes

- name: restart dashboard services
  service: name={{ item }} state=restarted enabled=yes
  with_items: services | union(services_noarch)