465b9969bdc6ae8f327b9e37323f8754ad5700df
[genesis.git] / compass / deploy / ansible / roles / dashboard / tasks / main.yml
1 ---
2 - name: install dashboard packages
3   apt: name={{ item }} state=present force=yes
4   with_items:
5     - apache2
6     - memcached
7     - libapache2-mod-wsgi
8     - openstack-dashboard
9
10 - name: remove ubuntu theme
11   apt: name=openstack-dashboard-ubuntu-theme
12        state=absent
13
14 ## horizon configuration is already enabled in apache2/conf-enabled
15 ## by openstack-dashboard package deploy script.
16 #- name: update dashboard conf
17 #  template: src=openstack-dashboard.conf
18 #            dest=/etc/apache2/sites-available/openstack-dashboard.conf
19 #            backup=yes
20
21 - name: update horizon settings
22   template: src=local_settings.py
23             dest=/etc/openstack-dashboard/local_settings.py
24             backup=yes
25
26 - name: restart apache2
27   service: name=apache2 state=restarted enabled=yes
28
29 - name: restart memcached
30   service: name=memcached state=restarted enabled=yes