now reloading the user daemon only if the copy has been changed

This commit is contained in:
aminnairi
2025-02-05 12:12:22 +01:00
parent a7c5b2f859
commit c0e49fa97e
+7
View File
@@ -14,6 +14,13 @@
owner: amin
group: amin
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
ansible.builtin.systemd_service: