osd: ensure osd ids collected are well restarted

This commit refact the condition in the loop of that task so all
potential osd ids found are well started.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1790212

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/4932/head
Guillaume Abrioux 2020-01-13 16:31:00 +01:00 committed by Dimitri Savineau
parent af6875706a
commit 58e6bfed2d
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
enabled: yes
masked: no
daemon_reload: yes
with_items: "{{ ((ceph_osd_ids.stdout | from_json).keys() | list) if not containerized_deployment else osd_ids_non_container.stdout_lines }}"
with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) + osd_ids_non_container.stdout_lines | default([]) }}"
- name: ensure systemd service override directory exists
file: