Does anyone have a novel way to test kubectl/oc login context explicitly in a playbook to fail instead of waiting to lower in roles?
I'm familiar with k8s_auth module <https://docs.ansible.com/ansible/latest/modules/k8s_auth_module.html> for handling explicit Kubernetes/OpenShift login, however there are still cases where we need to fallback on kubectl/oc context when using k8s module <https://docs.ansible.com/ansible/latest/modules/k8s_module.html> and k8s lookup plugin <https://docs.ansible.com/ansible/latest/plugins/lookup/k8s.html> and having a reasonable way of testing connectivity would save a lot of time.. Thanks, Andy -- [image: BandwidthMaroon.png] Andy Feller • Sr DevOps Engineer 900 Main Campus Drive, Suite 500, Raleigh, NC 27606 e: [email protected] -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAAg6KNH%2B-n3b%3DcwNUkmQQ6e_dZixCjzb6qGRtMpAGE4ZR_Qtcw%40mail.gmail.com.
