diff --git a/roles/ceph-osd/templates/ceph-osd.service.j2 b/roles/ceph-osd/templates/ceph-osd.service.j2 index 3822b75a8..c0a4f402b 100644 --- a/roles/ceph-osd/templates/ceph-osd.service.j2 +++ b/roles/ceph-osd/templates/ceph-osd.service.j2 @@ -5,7 +5,7 @@ After=docker.service [Service] EnvironmentFile=-/etc/environment -ExecStartPre=-/usr/bin/docker stop {{ ansible_hostname }}-osd-dev%i +ExecStartPre=-/usr/bin/docker stop ceph-osd-{{ ansible_hostname }}-dev%i ExecStartPre=-/usr/bin/docker rm -f ceph-osd-{{ ansible_hostname }}-dev%i ExecStart={{ ceph_osd_docker_run_script_path }}/ceph-osd-run.sh %i ExecStop=-/usr/bin/docker stop ceph-osd-{{ ansible_hostname }}-dev%i