Fix unsafe conditional
This commit is contained in:
parent
8f5e162fd6
commit
31728c0915
|
@ -172,10 +172,10 @@
|
||||||
# Single-node cluster ruleset
|
# Single-node cluster ruleset
|
||||||
- name: remove default CRUSH replicated_rule ruleset
|
- name: remove default CRUSH replicated_rule ruleset
|
||||||
command: ceph osd crush rule rm replicated_rule
|
command: ceph osd crush rule rm replicated_rule
|
||||||
when: "{{ pvc_nodes | length }} == 1"
|
when: pvc_nodes | length == 1
|
||||||
|
|
||||||
- name: add single-node CRUSH replicated_rule ruleset
|
- name: add single-node CRUSH replicated_rule ruleset
|
||||||
command: ceph osd crush rule create-replicated replicated_rule default osd
|
command: ceph osd crush rule create-replicated replicated_rule default osd
|
||||||
when: "{{ pvc_nodes | length }} == 1"
|
when: pvc_nodes | length == 1
|
||||||
|
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
Loading…
Reference in New Issue