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

On Thursday, August 29, 2019 at 5:17:20 AM UTC-5, user user wrote:
>
> 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/5870f4fd-a19f-4d9d-b6ff-8bea472c3b10%40googlegroups.com.

Reply via email to