parent
a927bb6331
commit
c2ce1ed93b
@ -1,5 +1,12 @@ |
|||||||
tasks: |
--- |
||||||
- 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