mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 14:19:09 +01:00
now reloading the user daemon only if the copy has been changed
This commit is contained in:
1 parent
a7c5b2f859
commit
c0e49fa97e
1 file changed
+7
@@ -14,6 +14,13 @@
|
|||||||
owner: amin
|
owner: amin
|
||||||
group: amin
|
group: amin
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
register: syncthing_service_copy
|
||||||
|
|
||||||
|
- name: Reload Systemd User Daemon
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
daemon_reload: true
|
||||||
|
scope: user
|
||||||
|
when: syncthing_service_copy.changed
|
||||||
|
|
||||||
- name: Reload Systemd User Daemon
|
- name: Reload Systemd User Daemon
|
||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd_service:
|
||||||
|
|||||||
Reference in new issue
Block a user