From 84edd510d74e6340055c1dd9c773df2f9354ac6a Mon Sep 17 00:00:00 2001 From: RPietrzak Date: Thu, 20 Aug 2020 15:17:22 +0200 Subject: [PATCH] Remove 'run_once: true' from wait 'for all osd to be up' task in ceph-osd/tasks/main.yml role. This together with condition 'ansible_play_hosts_all | last' causes skipping that task on the first host. Signed-off-by: RPietrzak --- roles/ceph-osd/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index e6645cf41..3ddb307c8 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -114,7 +114,6 @@ delay: "{{ delay_wait_osd_up }}" changed_when: false delegate_to: "{{ groups[mon_group_name][0] }}" - run_once: true until: - (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_osds"] | int > 0 - (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_osds"] == (wait_for_all_osds_up.stdout | from_json)["osdmap"]["osdmap"]["num_up_osds"]