summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/dashboard/tasks/main.yml
blob: 9206fda4a49aefbac94a15f3e6dd4243a9d180cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- 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: 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"

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