shrink_osd: mark all osd(s) out in one command

Signed-off-by: wumingqiao <wumingqiao@beyondcent.com>
pull/3983/head
wumingqiao 2019-05-15 15:27:21 +08:00 committed by Guillaume Abrioux
parent 2798774e96
commit 5320aa11c4
1 changed files with 1 additions and 2 deletions

View File

@ -87,10 +87,9 @@
with_items: "{{ find_osd_hosts.results }}" with_items: "{{ find_osd_hosts.results }}"
- name: mark osd(s) out of the cluster - 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 run_once: true
delegate_to: "{{ groups[mon_group_name][0] }}" delegate_to: "{{ groups[mon_group_name][0] }}"
with_items: "{{ osd_to_kill.split(',') }}"
- name: stop osd(s) service - name: stop osd(s) service
service: service: