Test YML file

main
Nicolas Patouillard 3 years ago
parent a927bb6331
commit c2ce1ed93b
  1. 9
      test.yml

@ -1,5 +1,12 @@
---
- 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: "C:\\Users\\Administrator\\Desktop\\example.txt"
path: "{{ myfile }}"
state: touch
Loading…
Cancel
Save