From 14c189fee5882ae1da367f00eec624d3fad34992 Mon Sep 17 00:00:00 2001 From: WingkaiHo Date: Thu, 23 Mar 2017 14:49:10 +0800 Subject: [PATCH] break it into lines since you already use the string block synta and fix disable it here and enable again in later task --- .../recover-osds-after-ssd-journal-failure.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml b/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml index a5f9e87a0..b2aeca8ce 100644 --- a/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml +++ b/infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml @@ -90,7 +90,10 @@ - name: make partitions on new ssd shell: > - sgdisk --new={{item.item[1].index}}:0:+{{item.item[1].size}} "--change-name={{ item.item[1].index }}:ceph journal" --typecode={{ item.item[1].index }}:{{ journal_typecode }} --partition-guid={{ item.item[1].index }}:{{ item.stdout }} --mbrtogpt -- {{ item.item[0].device_name }} + sgdisk --new={{item.item[1].index}}:0:+{{item.item[1].size}} "--change-name={{ item.item[1].index }}:ceph journal" + --typecode={{ item.item[1].index }}:{{ journal_typecode }} + --partition-guid={{ item.item[1].index }}:{{ item.stdout }} + --mbrtogpt -- {{ item.item[0].device_name }} with_items: - "{{ osds_uuid.results }}" @@ -98,7 +101,7 @@ service: name: "ceph-osd@{{ item.item[1].osd_id }}" state: stopped - enabled: no + enabled: yes with_items: - "{{ osds_uuid.results }}" -- 2.39.5