--- # Tasks to log out from Kubernetes API - name: Log out from Kubernetes API (revoke access token) kubernetes.core.k8s_auth: state: absent host: "{{ openshift_cluster_api }}" api_key: "{{ k8s_auth_results.k8s_auth.api_key }}" validate_certs: "{{ validate_certs | default(true) }}" when: k8s_auth_results.k8s_auth.api_key is defined