]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
shrink_osd: mark all osd(s) out in one command
authorwumingqiao <wumingqiao@beyondcent.com>
Wed, 15 May 2019 07:27:21 +0000 (15:27 +0800)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 May 2019 14:04:28 +0000 (16:04 +0200)
Signed-off-by: wumingqiao <wumingqiao@beyondcent.com>
infrastructure-playbooks/shrink-osd.yml

index edf78194ee85c87bf27b700f2235ae20e72575b2..6ec5ef0fa5e12b347121267f0da7b79ade3d00b8 100644 (file)
       with_items: "{{ find_osd_hosts.results }}"
 
     - name: mark osd(s) out of the cluster
-      command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd out {{ item }}"
+      command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd out {{ osd_to_kill.replace(',', ' ') }}"
       run_once: true
       delegate_to: "{{ groups[mon_group_name][0] }}"
-      with_items: "{{ osd_to_kill.split(',') }}"
 
     - name: stop osd(s) service
       service: