From ebb56ccebf2bd39bd6b0b3258e58bb12269356f9 Mon Sep 17 00:00:00 2001 From: WingkaiHo Date: Thu, 23 Mar 2017 17:38:41 +0800 Subject: [PATCH] command module instead shell --- .../recover-osds-after-ssd-journal-failure.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml b/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml index 2a159cdcd..de3b6e86e 100644 --- a/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml +++ b/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml @@ -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 }}"