Test YML file

main
Nicolas Patouillard 3 years ago
parent b5575389b2
commit 6411d08ebc
  1. 16
      test.yml

@ -1,11 +1,13 @@
error code
---
- name: win_file module demo
- name: win_get_url module demo
hosts: all
become: false
vars:
ansible_shell_type: powershell
shell_type: powershell
myurl: "https://releases.ansible.com/ansible/ansible-2.9.25.tar.gz"
mydest: 'C:\Users\Administrator\Desktop\ansible-2.9.25.tar.gz'
tasks:
- name: Creating an empty file
ansible.windows.win_powershell:
script: |
echo "Hello World"
- name: download file
ansible.builtin.get_url:
url: "{{ myurl }}"
dest: "{{ mydest }}"
Loading…
Cancel
Save