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-11-27 04:05:32 +08:00
|
|
|
always_run: true
|
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([]) }}"
|
2016-11-03 17:16:33 +08:00
|
|
|
- "{{ secure_cluster_flags }}"
|