Please give your support to find out how to make a playbook in Ansible that executes oc commands (like oc get nodes, oc get clusteroperators) to do a healthcheck of the OpenShift clusters. thanks in advance
You wouldn’t make a playbook that calls oc
commands directly. You’d use the OKD Community Collection:
Community.Okd — Ansible Documentation