aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml')
-rw-r--r--deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml
new file mode 100644
index 00000000..bd4a4604
--- /dev/null
+++ b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_install.yml
@@ -0,0 +1,15 @@
+---
+- name: install cinder packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present force=yes"
+ with_items: packages
+
+- name: generate cinder service list
+ shell: echo {{ item }} >> /opt/service
+ with_items: services
+
+- name: upload cinder conf
+ template: src=cinder.conf dest=/etc/cinder/cinder.conf
+ notify:
+ - restart cinder-scheduler
+ - restart cinder-api
+