2016-05-11 00:29:27 +08:00
|
|
|
---
|
|
|
|
- name: create pools
|
|
|
|
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pgs }}
|
2016-11-03 17:16:33 +08:00
|
|
|
with_items: "{{ pools }}"
|
2016-05-11 00:29:27 +08:00
|
|
|
changed_when: false
|
|
|
|
failed_when: false
|
|
|
|
|
|
|
|
- name: create keys
|
|
|
|
command: ceph --cluster {{ cluster }} auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
|
|
|
args:
|
|
|
|
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
2016-11-03 17:16:33 +08:00
|
|
|
with_items: "{{ keys }}"
|
2016-05-11 00:29:27 +08:00
|
|
|
changed_when: false
|
|
|
|
when: cephx
|