From 8a5107d0caeda6acd22cc6a8c8173a89eee60679 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 7 May 2021 13:49:26 +0200 Subject: [PATCH] nfs: replace a command task Let's use the ansible service module instead of using command module. by the way, killall isn't POSIX standard. Signed-off-by: Guillaume Abrioux --- roles/ceph-nfs/tasks/pre_requisite_container.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/ceph-nfs/tasks/pre_requisite_container.yml b/roles/ceph-nfs/tasks/pre_requisite_container.yml index d05551442..789e9144d 100644 --- a/roles/ceph-nfs/tasks/pre_requisite_container.yml +++ b/roles/ceph-nfs/tasks/pre_requisite_container.yml @@ -56,7 +56,11 @@ owner: "root" group: "root" mode: "0644" + register: dbus_svc_file - name: reload dbus configuration - command: "killall -SIGHUP dbus-daemon" + service: + name: dbus + state: reloaded + when: dbus_svc_file.changed | bool when: ceph_nfs_dynamic_exports | bool \ No newline at end of file -- 2.39.5