From: Sébastien Han Date: Thu, 28 Jun 2018 07:54:24 +0000 (+0200) Subject: ceph-osd: trigger osd container restart on script change X-Git-Tag: v3.0.37~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef12359a2a0bb5367d976e23230183033711b268;p=ceph-ansible.git ceph-osd: trigger osd container restart on script change The script ceph-osd-run.sh holds the config options to start the container, if one of these options are modified we must restart the container. This was not the case before becauase the 'notify' flag wasn't present. Closing: https://bugzilla.redhat.com/show_bug.cgi?id=1596061 Signed-off-by: Sébastien Han (cherry picked from commit abdb53e16a7f46ceebbf4de65ed1add04da0d543) --- diff --git a/roles/ceph-osd/tasks/docker/start_docker_osd.yml b/roles/ceph-osd/tasks/docker/start_docker_osd.yml index 2308ffaca..c24e7db01 100644 --- a/roles/ceph-osd/tasks/docker/start_docker_osd.yml +++ b/roles/ceph-osd/tasks/docker/start_docker_osd.yml @@ -24,6 +24,8 @@ owner: "root" group: "root" mode: "0744" + notify: + - restart ceph osds - name: generate systemd unit file become: true @@ -42,5 +44,4 @@ state: started enabled: yes daemon_reload: yes - changed_when: false with_items: "{{ devices }}"