mirror of https://github.com/ceph/ceph-ansible.git
shrink_osd: mark all osd(s) out in one command
Signed-off-by: wumingqiao <wumingqiao@beyondcent.com>
(cherry picked from commit 5320aa11c4
)
pull/3993/head
v4.0.0rc7
parent
0f9df389df
commit
30b1ca9aeb
|
@ -87,10 +87,9 @@
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue