a1cded568769a267c8abc78921ecc5a9b53718e6
[genesis.git] / compass / deploy / ansible / roles / nova-controller / tasks / nova_install.yml
1 ---
2 - name: install nova related packages
3   apt: name={{ item }} state=present force=yes
4   with_items:
5     - nova-api
6     - nova-cert
7     - nova-conductor
8     - nova-consoleauth
9     - nova-novncproxy
10     - nova-scheduler
11     - python-novaclient
12     - python-oslo.rootwrap
13
14 - name: generate nova controll service list
15   shell: echo {{ item }} >> /opt/service
16   with_items:
17     - nova-api
18     - nova-cert
19     - nova-conductor
20     - nova-consoleauth
21     - nova-novncproxy
22     - nova-scheduler
23
24 - name: update nova conf
25   template: src=nova.conf
26             dest=/etc/nova/nova.conf
27             backup=yes
28   notify:
29     - restart nova-api
30     - restart nova-cert
31     - restart nova-consoleauth
32     - restart nova-scheduler
33     - restart nova-conductor
34     - restart nova-novncproxy
35     - remove nova-sqlite-db