Test YML file

main
Nicolas Patouillard 3 years ago
parent 1e05ba7bc3
commit 3f81f3c632
  1. 8
      test.yml

@ -3,6 +3,8 @@
hosts: all
tasks:
- name: Creating an empty file
ansible.windows.win_file:
path: 'C:\Users\Administrator\Desktop\example.txt'
state: touch
win_shell: |
$value = Test-Path -Path C:\windows\temp
if ($value) {
New-Item C:\windows\temp\test.txt -ItemType File
}
Loading…
Cancel
Save