]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
break it into lines since you already use the string block synta and fix disable...
authorWingkaiHo <sanguosfiang@163.com>
Thu, 23 Mar 2017 06:49:10 +0000 (14:49 +0800)
committerWingkaiHo <sanguosfiang@163.com>
Thu, 23 Mar 2017 06:49:10 +0000 (14:49 +0800)
infrastructure-playbooks/recover-osds-after-ssd-journal-failure.yml

index a5f9e87a09efe2e53a40f946bc1502be2abee6d6..b2aeca8ceb43ba51a7c98a4febf73e66761df66d 100644 (file)
 
   - 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 }}"
 
     service:
       name: "ceph-osd@{{ item.item[1].osd_id }}"
       state: stopped
-      enabled: no
+      enabled: yes
     with_items:
       - "{{ osds_uuid.results }}"