From: Benoît Knecht Date: Mon, 26 Jul 2021 11:03:56 +0000 (+0200) Subject: ceph-handler: Fix osd handler in check mode X-Git-Tag: v6.0.14~22 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=39fa5e2f2c97fa357e4c3758bf5295aad111d9af;p=ceph-ansible.git ceph-handler: Fix osd handler in check mode 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) --- 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: