2015-01-30 20:34:35 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack pool
|
2015-01-30 20:34:35 +08:00
|
|
|
command: rados mkpool {{ item }}
|
|
|
|
with_items:
|
|
|
|
- "{{ openstack_glance_pool }}"
|
|
|
|
- "{{ openstack_cinder_pool }}"
|
|
|
|
- "{{ openstack_nova_pool }}"
|
|
|
|
- "{{ openstack_cinder_backup_pool }}"
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2015-07-29 00:21:15 +08:00
|
|
|
failed_when: false
|
2015-01-30 20:34:35 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack keys
|
2015-03-19 19:21:29 +08:00
|
|
|
command: >
|
|
|
|
ceph auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/ceph.{{ item.name }}.keyring
|
|
|
|
creates=/etc/ceph/ceph.{{ item.name }}.keyring
|
2015-01-30 20:34:35 +08:00
|
|
|
with_items: openstack_keys
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|