--- - name: win_file module demo hosts: all vars: ansible_shell_type: powershell shell_type: powershell tasks: - name: Creating an empty file ansible.windows.win_powershell: script: | echo "Hello World"