From 31728c091597eb2a62f0941087bd188f9c829877 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 3 Sep 2024 21:24:40 -0400 Subject: [PATCH] Fix unsafe conditional --- roles/pvc/tasks/ceph/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index 112f153..ea1a3ab 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -172,10 +172,10 @@ # Single-node cluster ruleset - name: remove default CRUSH replicated_rule ruleset 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 command: ceph osd crush rule create-replicated replicated_rule default osd - when: "{{ pvc_nodes | length }} == 1" + when: pvc_nodes | length == 1 - meta: flush_handlers