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 <gabrioux@redhat.com>
reload_dbus
Guillaume Abrioux 2021-05-07 13:49:26 +02:00
parent e6d8b058ba
commit 8a5107d0ca
1 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,11 @@
owner: "root" owner: "root"
group: "root" group: "root"
mode: "0644" mode: "0644"
register: dbus_svc_file
- name: reload dbus configuration - 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 when: ceph_nfs_dynamic_exports | bool