From: Christoph Dwertmann Date: Tue, 12 Jul 2016 11:11:38 +0000 (+1000) Subject: Use correct object names when zapping GPT header X-Git-Tag: v1.0.6~64^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8cfaa05743b0a6887193661d6ceb95174bc96359;p=ceph-ansible.git Use correct object names when zapping GPT header --- diff --git a/roles/ceph-osd/tasks/check_devices.yml b/roles/ceph-osd/tasks/check_devices.yml index c2459fb70..64a7dbb1c 100644 --- a/roles/ceph-osd/tasks/check_devices.yml +++ b/roles/ceph-osd/tasks/check_devices.yml @@ -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.1.key }}' || sgdisk --zap-all --clear --mbrtogpt -g -- '/dev/{{ item.1.key }}'" + shell: "sgdisk --zap-all --clear --mbrtogpt -g -- '/dev/{{ item.0.item.key }}' || sgdisk --zap-all --clear --mbrtogpt -g -- '/dev/{{ item.0.item.key }}'" with_together: - combined_osd_partition_status_results.results - ansible_devices @@ -98,8 +98,8 @@ - journal_collocation - osd_auto_discovery - ansible_devices is defined - - item.value.removable == "0" - - item.value.partitions|count == 0 + - item.0.item.value.removable == "0" + - item.0.item.value.partitions|count == 0 - item.0.rc != 0 - name: fix partitions gpt header or labels of the journal devices