Merge pull request #287 from bstillwell/master

Correct the logic for running 'ceph-disk prepare'
pull/288/head
Leseb 2015-06-25 23:36:41 +02:00
commit 9b294006ce
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@
# failed, this is why we check if the device is a partition too. # failed, this is why we check if the device is a partition too.
- name: prepare OSD disk(s) - name: prepare OSD disk(s)
command: "ceph-disk prepare {{ item.2 }} {{ item.3 }}" command: "ceph-disk prepare {{ item.2 }} {{ item.3 }}"
when: (item.0.rc != 0 or item.1.rc != 0) and raw_multi_journal when: item.0.rc != 0 and
item.1.rc != 0 and
raw_multi_journal
ignore_errors: True ignore_errors: True
with_together: with_together:
- parted.results - parted.results