Test YML file

main
Nicolas Patouillard 3 years ago
parent 77106a87a4
commit 73704c9049
  1. 16
      test.yml

@ -1,4 +1,12 @@
- name: Run a command under cmd
win_shell: mkdir C:\temp
args:
executable: cmd.exe
---
- 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: "test.txt"
state: touch
Loading…
Cancel
Save