kubectl get nodes using context from a playbook

I’m trying to fetch nodes list via ansible playbook using a context name. but its not working

my playbook:

cat getnodes.yaml

Any help on this.

I do have multiple clusters in config file. I need to either specify cluster name or context name and get the nodes list or to perform any activity on a particular cluster