--- # Restarting the .socket is what picks up a changed unit; the .service is # started by the socket on the next connection. - name: Restart socket proxy ansible.builtin.systemd: name: "{{ socket_proxy_name }}-proxy.socket" state: restarted daemon_reload: yes