2015-05-12 17:18:12 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: collect all the pools
|
2018-11-16 17:29:05 +08:00
|
|
|
command: >
|
2019-05-14 20:51:32 +08:00
|
|
|
{{ container_exec_cmd }} rados --cluster {{ cluster }} lspools
|
2018-10-30 22:51:32 +08:00
|
|
|
changed_when: false
|
2015-05-12 17:18:12 +08:00
|
|
|
register: ceph_pools
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2015-05-12 17:18:12 +08:00
|
|
|
|
|
|
|
- name: secure the cluster
|
2018-11-16 17:29:05 +08:00
|
|
|
command: >
|
2019-05-14 20:51:32 +08:00
|
|
|
{{ container_exec_cmd }} ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true
|
2018-10-30 22:51:32 +08:00
|
|
|
changed_when: false
|
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 }}"
|