From: Yin Jifeng Date: Fri, 17 Apr 2015 02:04:52 +0000 (+0800) Subject: make sure a running mon to check when upgrade mon X-Git-Tag: v1.0.0~225^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F250%2Fhead;p=ceph-ansible.git make sure a running mon to check when upgrade mon --- diff --git a/rolling_update.yml b/rolling_update.yml index 741ca091e..0022bde03 100644 --- a/rolling_update.yml +++ b/rolling_update.yml @@ -56,6 +56,11 @@ state=restarted args=mon + - name: select a running monitor + set_fact: mon_host={{ item }} + with_items: groups.mons + when: item != inventory_hostname + - name: Waiting for the monitor to join the quorum... shell: > ceph -s | grep monmap | sed 's/.*quorum//' | egrep -sq {{ ansible_hostname }} @@ -63,7 +68,7 @@ until: result.rc == 0 retries: 5 delay: 10 - delegate_to: "{{ groups.mons[0] }}" + delegate_to: "{{ mon_host }}" - hosts: osds