parent
c2ce1ed93b
commit
ebdbe3d540
@ -1,12 +1,4 @@ |
|||||||
--- |
- name: Creating an empty file |
||||||
- name: win_file module demo |
ansible.windows.win_file: |
||||||
hosts: all |
path: 'C:\\Users\\Administrator\\Desktop\\example.txt' |
||||||
become: false |
state: touch |
||||||
gather_facts: false |
|
||||||
vars: |
|
||||||
myfile: 'C:\\Users\\Administrator\\Desktop\\example.txt' |
|
||||||
tasks: |
|
||||||
- name: Creating an empty file |
|
||||||
ansible.windows.win_file: |
|
||||||
path: "{{ myfile }}" |
|
||||||
state: touch |
|
||||||
Loading…
Reference in new issue