parent
b5575389b2
commit
6411d08ebc
@ -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…
Reference in new issue