Test YML file

main
Nicolas Patouillard 3 years ago
parent c2ce1ed93b
commit ebdbe3d540
  1. 10
      test.yml

@ -1,12 +1,4 @@
---
- name: win_file module demo
hosts: all
become: false
gather_facts: false
vars:
myfile: 'C:\\Users\\Administrator\\Desktop\\example.txt'
tasks:
- name: Creating an empty file
ansible.windows.win_file:
path: "{{ myfile }}"
path: 'C:\\Users\\Administrator\\Desktop\\example.txt'
state: touch
Loading…
Cancel
Save