I'm trying to fetch nodes list via ansible playbook using a context name.
but its not working
my playbook:
cat getnodes.yaml
---
- name: "get nodes"
hosts: kubernetes
tasks:
- name: "nodes"
command: "kubectl --context='contextname' get nodes"
I do have multiple clusters in the config file.. so I need to use context.
--
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/af03ff9a-3353-4618-9c65-d7c56c2e5fff%40googlegroups.com.