- name: ansible copy file from remote to local. fetch: src: /home/administrator/.kube/config dest: "./" flat: yes when: ansible_hostname == groups[master_group][0]