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