]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cleanup delegate statement for rolling update
authorYin Jifeng <jifeng.yin@gmail.com>
Tue, 14 Apr 2015 13:49:53 +0000 (21:49 +0800)
committerYin Jifeng <jifeng.yin@gmail.com>
Tue, 14 Apr 2015 14:02:05 +0000 (22:02 +0800)
rolling_update.yml

index 748c6008457af6ebe813fbfbb2fb88fb3da8ad94..a0e4779b76799107811763915d86561dba430c46 100644 (file)
@@ -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
       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