]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: only run post osd upgrade play on 1 mon
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 18 Nov 2019 17:12:00 +0000 (18:12 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 13 Jan 2020 18:42:01 +0000 (13:42 -0500)
There is no need to run these tasks n times from each monitor.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit c878e99589bde0eecb8ac72a7ec8bc1f66403eeb)

infrastructure-playbooks/rolling_update.yml

index 0683a4bac2e16be914a21bb739bfaf045068192c..9a428c00a6e142ae6baee28ca1b46c2e3215208c 100644 (file)
     - 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