- name: Copy file to Windows host hosts: windows gather_facts: false tasks: - name: Copy README file ansible.windows.win_copy: src: files/readme.txt dest: C:\apps\readme.txt