- name: ansible copy file from remote to local.
fetch:
src: /home/administrator/.kube/config
dest: "{{ playbook_dir }}/kubeconfig"
flat: true