mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #382 from msambol/activate_osd
Remove parition check from ceph-osd rolepull/390/head
commit
453bf50126
|
@ -3,16 +3,13 @@
|
||||||
# partition.
|
# partition.
|
||||||
- name: activate osd(s) when device is a disk
|
- name: activate osd(s) when device is a disk
|
||||||
command: |
|
command: |
|
||||||
ceph-disk activate {{ item.2 | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1
|
ceph-disk activate {{ item.1 | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1
|
||||||
with_together:
|
with_together:
|
||||||
- parted.results
|
|
||||||
- ispartition.results
|
- ispartition.results
|
||||||
- devices
|
- devices
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when:
|
when: item.0.rc != 0
|
||||||
item.0.rc == 0 and
|
|
||||||
item.1.rc != 0
|
|
||||||
|
|
||||||
# NOTE (leseb): this task is for partitions because we don't explicitly use a partition.
|
# NOTE (leseb): this task is for partitions because we don't explicitly use a partition.
|
||||||
- name: activate osd(s) when device is a partition
|
- name: activate osd(s) when device is a partition
|
||||||
|
|
Loading…
Reference in New Issue