break it into lines since you already use the string block synta and fix disable it here and enable again in later task

pull/1386/head
WingkaiHo 2017-03-23 14:49:10 +08:00
parent 62c37042fe
commit 14c189fee5
1 changed files with 5 additions and 2 deletions

View File

@ -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 }}"