From: Guillaume Abrioux Date: Fri, 7 May 2021 11:49:26 +0000 (+0200) Subject: nfs: replace a command task X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Freload_dbus;p=ceph-ansible.git 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 --- 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