mirror of https://github.com/ceph/ceph-ansible.git
13 lines
428 B
YAML
13 lines
428 B
YAML
---
|
|
- name: collect all the pools
|
|
command: rados --cluster {{ cluster }} lspools
|
|
register: ceph_pools
|
|
when: "{{ ceph_version.stdout | version_compare('0.94', '>=') }}"
|
|
|
|
- name: secure the cluster
|
|
command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true
|
|
with_nested:
|
|
- ceph_pools.stdout_lines
|
|
- secure_cluster_flags
|
|
when: "{{ ceph_version.stdout | version_compare('0.94', '>=') }}"
|