]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs: replace a command task reload_dbus 6526/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 May 2021 11:49:26 +0000 (13:49 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 May 2021 11:49:26 +0000 (13:49 +0200)
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 <gabrioux@redhat.com>
roles/ceph-nfs/tasks/pre_requisite_container.yml

index d05551442ca2fe1bf5f37cb47e7cb9d64071fb2d..789e9144ddc21bcbd4868cdfe6281abe1e5f5125 100644 (file)
         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