1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00
awx/installer/roles/kubernetes/tasks/kubernetes_auth.yml
James Smith c4df5f64c1
change set-context to use-context
set-context allows setting configuration within a provided context, to change contexts we need "use-context"

$ kubectl config
...
  set-context     Sets a context entry in kubeconfig
  use-context     Sets the current-context in a kubeconfig file
2020-01-07 16:01:54 -06:00

4 lines
102 B
YAML

---
- name: Set the Kubernetes Context
shell: "kubectl config use-context {{ kubernetes_context }}"