Skip to content
Snippets Groups Projects
Commit 6e505c0c authored by Matthew Mosesohn's avatar Matthew Mosesohn
Browse files

Fix delegate tasks for kubectl and etcdctl

parent e9a294fd
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,5 @@
command: "{{ bin_dir }}/etcdctl --endpoints={{ etcd_access_addresses }} rm -r /registry"
environment:
ETCDCTL_API: 2
delegate_to: "{{groups['etcd'][0]}}"
when: kube_apiserver_storage_backend == "etcd3" and needs_etcd_migration|bool|default(false)
......@@ -2,6 +2,7 @@
- name: See if node is in ready state
command: "kubectl get nodes | grep {{ inventory_hostname }}"
register: kubectl_nodes
delegate_to: "{{ groups['kube-master'][0] }}"
ignore_errors: true
- set_fact:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment