diff --git a/roles/ceph-mon/tasks/secure_cluster.yml b/roles/ceph-mon/tasks/secure_cluster.yml index a12d08f49..74666493a 100644 --- a/roles/ceph-mon/tasks/secure_cluster.yml +++ b/roles/ceph-mon/tasks/secure_cluster.yml @@ -2,7 +2,7 @@ - name: collect all the pools command: rados --cluster {{ cluster }} lspools register: ceph_pools - when: "{{ ceph_version | version_compare('0.94.0', '>=') }}" + 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