--- - hosts: all tasks: hosts: all - name: Creating an empty file ansible.windows.win_file: path: 'C:\\Users\\Administrator\\Desktop\\example.txt' state: touch