mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1873 from ceph/switch-unit
switch: make osd collection idempotentpull/1874/head
commit
9e68a17137
|
@ -199,6 +199,7 @@
|
|||
systemctl list-units | grep "loaded active" | grep -Eo 'ceph-osd@[0-9]{1,2}.service'
|
||||
register: running_osds
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: collect osd devices
|
||||
shell: |
|
||||
|
@ -222,7 +223,8 @@
|
|||
state: stopped
|
||||
enabled: no
|
||||
masked: yes
|
||||
with_items: "{{ running_osds.stdout_lines }}"
|
||||
with_items: "{{ running_osds.stdout_lines | default([])}}"
|
||||
when: running_osds != []
|
||||
|
||||
- set_fact:
|
||||
ceph_uid: 64045
|
||||
|
|
Loading…
Reference in New Issue