2015-01-30 20:34:35 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack pool
|
2016-03-29 21:37:31 +08:00
|
|
|
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }}
|
2017-01-24 03:53:43 +08:00
|
|
|
with_items: "{{ openstack_pools | unique }}"
|
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
|
2016-03-29 21:37:31 +08:00
|
|
|
command: ceph --cluster {{ cluster }} auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
2015-10-17 07:55:31 +08:00
|
|
|
args:
|
2016-03-29 21:37:31 +08:00
|
|
|
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
2016-09-21 20:21:41 +08:00
|
|
|
with_items: "{{ openstack_keys }}"
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2016-02-27 05:39:27 +08:00
|
|
|
when: cephx
|