You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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.
user user
unread,
Sep 5, 2019, 3:52:32 PM9/5/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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