]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
sgdisk: remove duplicated option `-g` 905/head
authorChengwei Yang <yangchengwei@qiyi.com>
Tue, 26 Jul 2016 00:55:43 +0000 (08:55 +0800)
committerChengwei Yang <yangchengwei@qiyi.com>
Tue, 26 Jul 2016 00:55:43 +0000 (08:55 +0800)
Option `-g` of sgdisk is duplicated with `--mbrtogpt`, so lets remove it.

This fix #896

Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
roles/ceph-osd/tasks/check_devices.yml

index 64a7dbb1cdb130ca4fb633b6689238da4ed61dff..8bb55f4ec58b5a2e803981d9889300eb6c3e48e5 100644 (file)
@@ -78,7 +78,7 @@
 # keep the current flow of the task.
 # See: https://github.com/ceph/ceph-ansible/issues/759
 - name: fix partitions gpt header or labels of the osd disks
-  shell: "sgdisk --zap-all --clear --mbrtogpt -g -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -g -- {{ item.1 }}"
+  shell: "sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }}"
   with_together:
     - combined_osd_partition_status_results.results
     - devices
@@ -89,7 +89,7 @@
     - item.0.rc != 0
 
 - name: fix partitions gpt header or labels of the osd disks (autodiscover disks)
-  shell: "sgdisk --zap-all --clear --mbrtogpt -g -- '/dev/{{ item.0.item.key }}' || sgdisk --zap-all --clear --mbrtogpt -g -- '/dev/{{ item.0.item.key }}'"
+  shell: "sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}' || sgdisk --zap-all --clear --mbrtogpt -- '/dev/{{ item.0.item.key }}'"
   with_together:
     - combined_osd_partition_status_results.results
     - ansible_devices
     - item.0.rc != 0
 
 - name: fix partitions gpt header or labels of the journal devices
-  shell: "sgdisk --zap-all --clear --mbrtogpt -g -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -g -- {{ item.1 }}"
+  shell: "sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }}"
   with_together:
     - journal_partition_status.results
     - raw_journal_devices