diff --git a/roles/ceph-osd/tasks/scenarios/osd_directory.yml b/roles/ceph-osd/tasks/scenarios/osd_directory.yml index efe8d1ba7..b277b8e6d 100644 --- a/roles/ceph-osd/tasks/scenarios/osd_directory.yml +++ b/roles/ceph-osd/tasks/scenarios/osd_directory.yml @@ -31,3 +31,11 @@ name: ceph state: started enabled: yes + when: ansible_service_mgr != "systemd" + +- name: start and add the OSD target to the systemd sequence + service: + name: ceph.target + state: started + enabled: yes + when: ansible_service_mgr == "systemd"