- name: "Copy source Splunk" hosts: all_splunk_instances tasks: - name: "Copy file" copy: src: "{{ repo_build_location }}" dest: "{{ splunk_build_location }}" remote_src: True delegate_to: "{{ host_repo }}" become: yes