From: Musee Ullah Date: Wed, 5 Oct 2016 21:36:41 +0000 (-0700) Subject: Remove dupes in raw_journal_devices in a consistent manner X-Git-Tag: v1.0.7~3^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=564a8486b0123b675a26c0725cfb0e99842213be;p=ceph-ansible.git Remove dupes in raw_journal_devices in a consistent manner --- diff --git a/roles/ceph-osd/tasks/check_devices.yml b/roles/ceph-osd/tasks/check_devices.yml index 07ccdd6ce..541aa7436 100644 --- a/roles/ceph-osd/tasks/check_devices.yml +++ b/roles/ceph-osd/tasks/check_devices.yml @@ -32,7 +32,7 @@ shell: "sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }} || sgdisk --zap-all --clear --mbrtogpt -- {{ item.1 }}" with_together: - "{{ journal_partition_status.results }}" - - "{{ raw_journal_devices }}" + - "{{ raw_journal_devices|default([])|unique }}" changed_when: false when: - raw_multi_journal