mirror of https://github.com/ceph/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 <gabrioux@redhat.com>reload_dbus
parent
e6d8b058ba
commit
8a5107d0ca
|
@ -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
|
Loading…
Reference in New Issue