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>
(cherry picked from commit 58e6bfed2d)
pull/4933/head
Guillaume Abrioux 2020-01-13 16:31:00 +01:00 committed by Dimitri Savineau
parent fc7212b192
commit 9ed540da7e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
enabled: yes enabled: yes
masked: no masked: no
daemon_reload: yes 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 - name: ensure systemd service override directory exists
file: file: