From 39fa5e2f2c97fa357e4c3758bf5295aad111d9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Knecht?= Date: Mon, 26 Jul 2021 13:03:56 +0200 Subject: [PATCH] ceph-handler: Fix osd handler in check mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run the Ceph commands that only gather information (without making any changes to the cluster) when running Ansible in check mode. This allows the tasks that depend on the variables set by those tasks to succeed in check mode. Signed-off-by: BenoƮt Knecht (cherry picked from commit 498acd7527410f7f359b2b0181e83ca39c682ec0) --- roles/ceph-handler/tasks/handler_osds.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-handler/tasks/handler_osds.yml b/roles/ceph-handler/tasks/handler_osds.yml index 7643f59f5..b34e88f0d 100644 --- a/roles/ceph-handler/tasks/handler_osds.yml +++ b/roles/ceph-handler/tasks/handler_osds.yml @@ -44,6 +44,7 @@ delegate_to: "{{ groups.get(mon_group_name, [])[0] }}" run_once: true changed_when: false + check_mode: false - name: get balancer module status command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer status -f json" @@ -51,6 +52,7 @@ run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" changed_when: false + check_mode: false - name: set_fact pools_pgautoscaler_mode set_fact: