From 0c66f909684ea91ccfda35668471c6c6c8c5d88f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 14 Oct 2020 08:52:02 +0200 Subject: [PATCH] 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: Guillaume Abrioux (cherry picked from commit 59d0f0199243de40bde714d1a9019b1715c57dbf) --- roles/ceph-osd/tasks/start_osds.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/ceph-osd/tasks/start_osds.yml b/roles/ceph-osd/tasks/start_osds.yml index b0466a4d2..3de63c057 100644 --- a/roles/ceph-osd/tasks/start_osds.yml +++ b/roles/ceph-osd/tasks/start_osds.yml @@ -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