From: Yin Jifeng Date: Tue, 14 Apr 2015 13:49:53 +0000 (+0800) Subject: cleanup delegate statement for rolling update X-Git-Tag: v1.0.0~225^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ce15f70dfcbf8910aeb39f53215a5d2d038c369;p=ceph-ansible.git cleanup delegate statement for rolling update --- diff --git a/rolling_update.yml b/rolling_update.yml index 748c60084..a0e4779b7 100644 --- a/rolling_update.yml +++ b/rolling_update.yml @@ -59,7 +59,7 @@ until: result.rc == 0 retries: 5 delay: 10 - delegate_to: 127.0.0.1 + delegate_to: "{{ groups.mons[0] }}" - hosts: osds @@ -69,8 +69,7 @@ pre_tasks: - name: Set the noout flag command: ceph osd set noout - delegate_to: "{{ item }}" - with_items: groups.mons[0] + delegate_to: "{{ groups.mons[0] }}" roles: - ceph-common @@ -107,12 +106,11 @@ until: result.rc == 0 retries: 10 delay: 10 - delegate_to: 127.0.0.1 + delegate_to: "{{ groups.mons[0] }}" - name: Unset the noout flag command: ceph osd unset noout - delegate_to: "{{ item }}" - with_items: groups.mons[0] + delegate_to: "{{ groups.mons[0] }}" - hosts: mdss