mirror of https://github.com/ceph/ceph-ansible.git
command module instead shell
parent
2d44c1cee6
commit
ebb56ccebf
|
@ -82,7 +82,7 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: get osd(s) journal uuid
|
- name: get osd(s) journal uuid
|
||||||
shell: cat "/var/lib/ceph/osd/{{ cluster }}-{{ item.1.osd_id }}/journal_uuid"
|
command: cat "/var/lib/ceph/osd/{{ cluster }}-{{ item.1.osd_id }}/journal_uuid"
|
||||||
register: osds_uuid
|
register: osds_uuid
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ dev_ssds }}"
|
- "{{ dev_ssds }}"
|
||||||
|
@ -105,8 +105,7 @@
|
||||||
- "{{ osds_uuid.results }}"
|
- "{{ osds_uuid.results }}"
|
||||||
|
|
||||||
- name: reinitialize osd(s) journal in new ssd
|
- name: reinitialize osd(s) journal in new ssd
|
||||||
shell: >
|
command: ceph-osd -i {{ item.item[1].osd_id }} --mkjournal --cluster {{ cluster }}
|
||||||
ceph-osd -i {{ item.item[1].osd_id }} --mkjournal --cluster {{ cluster }}
|
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ osds_uuid.results }}"
|
- "{{ osds_uuid.results }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue