--- - name: "[OpenRC] Restart service: radicale (to deploy config changes)" service: name: radicale state: restarted when: - ansible_service_mgr == "openrc" listen: "Restart radicale" - name: "[systemd] Restart service: radicale (to deploy config changes)" systemd: name: radicale state: restarted when: - ansible_service_mgr == "systemd" listen: "Restart radicale"