@ -1,6 +1,10 @@
---
- name: win_file module demo
hosts: all
vars:
myfile:
tasks:
- name: Creating an empty file
ansible.windows.win_file:
path: 'C:\\Users\\Administrator\\Desktop\\example.txt'
state: touch