summaryrefslogtreecommitdiffstats
path: root/compass/deploy/ansible/roles/cinder-controller/tasks/cinder_install.yml
blob: 03ad4322bd80f758c6c38322c3e47ec2de48dfb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: install cinder packages
  apt: name={{ item }} state=present force=yes
  with_items:
    - cinder-api
    - cinder-scheduler
    - python-cinderclient

- name: generate cinder service list
  shell: echo {{ item }} >> /opt/service
  with_items:
    - cinder-api
    - cinder-scheduler

- name: upload cinder conf
  template: src=cinder.conf dest=/etc/cinder/cinder.conf
  notify:
    - restart cinder-scheduler
    - restart cinder-api