2015-05-12 17:18:12 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: collect all the pools
|
2016-03-29 21:37:31 +08:00
|
|
|
command: rados --cluster {{ cluster }} lspools
|
2015-05-12 17:18:12 +08:00
|
|
|
register: ceph_pools
|
2016-04-13 09:26:59 +08:00
|
|
|
when: "{{ ceph_version | version_compare('0.94.0', '>=') }}"
|
2015-05-12 17:18:12 +08:00
|
|
|
|
|
|
|
- name: secure the cluster
|
2016-03-29 21:37:31 +08:00
|
|
|
command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true
|
2015-05-12 17:18:12 +08:00
|
|
|
with_nested:
|
2016-07-29 18:30:21 +08:00
|
|
|
- "{{ ceph_pools.stdout_lines|default([]) }}"
|
2015-05-12 17:18:12 +08:00
|
|
|
- secure_cluster_flags
|
2016-09-30 23:43:53 +08:00
|
|
|
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.hammer
|