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>pull/3983/head
parent
2798774e96
commit
5320aa11c4
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue