command module instead shell

pull/1386/head
WingkaiHo 2017-03-23 17:38:41 +08:00
parent 2d44c1cee6
commit ebb56ccebf
1 changed files with 2 additions and 3 deletions

View File

@ -82,7 +82,7 @@
state: present
- 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
with_subelements:
- "{{ dev_ssds }}"
@ -105,8 +105,7 @@
- "{{ osds_uuid.results }}"
- name: reinitialize osd(s) journal in new ssd
shell: >
ceph-osd -i {{ item.item[1].osd_id }} --mkjournal --cluster {{ cluster }}
command: ceph-osd -i {{ item.item[1].osd_id }} --mkjournal --cluster {{ cluster }}
with_items:
- "{{ osds_uuid.results }}"