From abdb53e16a7f46ceebbf4de65ed1add04da0d543 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 28 Jun 2018 09:54:24 +0200 Subject: [PATCH] ceph-osd: trigger osd container restart on script change MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-osd/tasks/docker/start_docker_osd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}" -- 2.39.5