ceph-ansible/roles/ceph-mon/tasks/secure_cluster.yml

13 lines
438 B
YAML
Raw Normal View History

---
- name: collect all the pools
command: rados --cluster {{ cluster }} lspools
register: ceph_pools
2016-04-13 09:26:59 +08:00
when: "{{ ceph_version | version_compare('0.94.0', '>=') }}"
- 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
2016-04-13 09:26:59 +08:00
when: "{{ ceph_version | version_compare('0.94.0', '>=') }}"