Test YML file

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

@ -1,5 +1,12 @@
tasks: ---
- 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 - name: Creating an empty file
ansible.windows.win_file: ansible.windows.win_file:
path: "C:\\Users\\Administrator\\Desktop\\example.txt" path: "{{ myfile }}"
state: touch state: touch
Loading…
Cancel
Save