Commit 6a521155 authored by Guillaume Abrioux's avatar Guillaume Abrioux Committed by Dimitri Savineau
Browse files

ceph-osd: start osd after systemd overrides

The service should be started after the ceph-osd systemd overrides has
been added, otherwise, the latter isn't considered.

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

Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 59d0f019)
parent 7c337d96
......@@ -33,15 +33,6 @@
include_tasks: systemd.yml
when: containerized_deployment | bool
- name: systemd start osd
systemd:
name: ceph-osd@{{ item }}
state: started
enabled: yes
masked: no
daemon_reload: yes
with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines) | default([]) }}"
- name: ensure systemd service override directory exists
file:
state: directory
......@@ -59,3 +50,12 @@
when:
- ceph_osd_systemd_overrides is defined
- ansible_service_mgr == 'systemd'
- name: systemd start osd
systemd:
name: ceph-osd@{{ item }}
state: started
enabled: yes
masked: no
daemon_reload: yes
with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines) | default([]) }}"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment