mirror of https://github.com/ceph/ceph-ansible.git
14 lines
381 B
YAML
14 lines
381 B
YAML
---
|
|
- name: collect all the pools
|
|
command: rados --cluster {{ cluster }} lspools
|
|
changed_when: false
|
|
register: ceph_pools
|
|
check_mode: no
|
|
|
|
- name: secure the cluster
|
|
command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true
|
|
changed_when: false
|
|
with_nested:
|
|
- "{{ ceph_pools.stdout_lines|default([]) }}"
|
|
- "{{ secure_cluster_flags }}"
|