mirror of https://github.com/ceph/ceph-ansible.git
14 lines
481 B
YAML
14 lines
481 B
YAML
---
|
|
- name: collect all the pools
|
|
command: rados --cluster {{ cluster }} lspools
|
|
register: ceph_pools
|
|
always_run: true
|
|
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.hammer
|
|
|
|
- name: secure the cluster
|
|
command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true
|
|
with_nested:
|
|
- "{{ ceph_pools.stdout_lines|default([]) }}"
|
|
- "{{ secure_cluster_flags }}"
|
|
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.hammer
|