2015-05-12 17:18:12 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: collect all the pools
|
2015-05-12 17:18:12 +08:00
|
|
|
command: rados lspools
|
|
|
|
register: ceph_pools
|
2015-06-24 21:51:54 +08:00
|
|
|
when: "{{ ceph_version.stdout | version_compare('0.94', '>=') }}"
|
2015-05-12 17:18:12 +08:00
|
|
|
|
|
|
|
- name: secure the cluster
|
|
|
|
command: ceph osd pool set {{ item[0] }} {{ item[1] }} true
|
|
|
|
with_nested:
|
|
|
|
- ceph_pools.stdout_lines
|
|
|
|
- secure_cluster_flags
|
2015-06-24 21:51:54 +08:00
|
|
|
when: "{{ ceph_version.stdout | version_compare('0.94', '>=') }}"
|