--- # All handlers run as the connection user ({{ podman_user }}), so systemctl # --user works without setting XDG_RUNTIME_DIR. - name: Reload systemd user units ansible.builtin.command: systemctl --user daemon-reload changed_when: true listen: Reload systemd user units # A changed unit file changes the generated unit, so the app is recreated. All of # its state is on the bind mount, so a recreate loses nothing — but it is a few # seconds of downtime for the one Site. - name: Restart the menu app ansible.builtin.systemd_service: name: '{{ unit_name }}' scope: user state: restarted daemon_reload: true listen: Restart the menu app