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 hosts: all
become: false
vars: vars:
ansible_shell_type: powershell myurl: "https://releases.ansible.com/ansible/ansible-2.9.25.tar.gz"
shell_type: powershell mydest: 'C:\Users\Administrator\Desktop\ansible-2.9.25.tar.gz'
tasks: tasks:
- name: Creating an empty file - name: download file
ansible.windows.win_powershell: ansible.builtin.get_url:
script: | url: "{{ myurl }}"
echo "Hello World" dest: "{{ mydest }}"
Loading…
Cancel
Save