Test YML file

main
Nicolas Patouillard 3 years ago
parent 14cf177bb5
commit 5899618b8e
  1. 12
      test.yml

@ -1,9 +1,5 @@
---
- name: win_file module demo
hosts: all
vars:
ansible_shell_type: powershell
shell_type: powershell
tasks:
- name: Creating an empty file
win_shell: 'New-Item C:\test.txt -ItemType File'
- name: Run basic PowerShell script
ansible.windows.win_powershell:
script: |
echo "Hello World"
Loading…
Cancel
Save