diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index 02dc1a6fa..0932c6d42 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -90,11 +90,9 @@ when: kubeconfig_localhost|default(false) - name: Copy kubectl binary to ansible host - fetch: + synchronize: src: "{{ bin_dir }}/kubectl" dest: "{{ artifacts_dir }}/kubectl" - flat: yes - validate_checksum: no become: no run_once: yes when: kubectl_localhost|default(false)