From: Guillaume Abrioux Date: Mon, 18 Nov 2019 17:12:00 +0000 (+0100) Subject: update: only run post osd upgrade play on 1 mon X-Git-Tag: v3.2.39~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bcd7fee18dffa52d7752f19ed208e11f92839432;p=ceph-ansible.git update: only run post osd upgrade play on 1 mon There is no need to run these tasks n times from each monitor. Signed-off-by: Guillaume Abrioux (cherry picked from commit c878e99589bde0eecb8ac72a7ec8bc1f66403eeb) --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 0683a4bac..9a428c00a 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -456,12 +456,10 @@ - name: get osd versions command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions" register: ceph_versions - delegate_to: "{{ groups[mon_group_name][0] }}" - name: set_fact ceph_versions_osd set_fact: ceph_versions_osd: "{{ (ceph_versions.stdout|from_json).osd }}" - delegate_to: "{{ groups[mon_group_name][0] }}" # length == 1 means there is a single osds versions entry # thus all the osds are running the same version