mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-11-02 09:10:15 +00:00
download latest version of base software
This commit is contained in:
1 parent
201c3c277e
commit
d320117258
2 files changed
+49
-40
No files matched your search
@@ -12,14 +12,23 @@
|
||||
- name: Community Pacakges
|
||||
tags: community_packages
|
||||
block:
|
||||
- name: Download base software packages to Chocolatey server.
|
||||
- name: Create Package folder
|
||||
win_file:
|
||||
path: "{{ choco_package_path }}\\{{ package }}"
|
||||
state: directory
|
||||
loop: "{{ community_packages }}"
|
||||
loop_control:
|
||||
loop_var: package
|
||||
|
||||
- name: Download nupkg to Chocolatey server.
|
||||
win_get_url:
|
||||
url: "https://community.chocolatey.org/api/v2/package/{{ package.name }}/{{ package.version }}"
|
||||
dest: "{{ choco_package_path }}\\{{ package.name }}.{{ package.version }}.nupkg"
|
||||
url: "https://community.chocolatey.org/api/v2/package/{{ package }}"
|
||||
dest: "{{ choco_package_path }}\\{{ package }}.nupkg"
|
||||
loop: "{{ community_packages }}"
|
||||
loop_control:
|
||||
loop_var: package
|
||||
pause: 10
|
||||
|
||||
rescue: # Fallback to local copies if rate limiting causes failure
|
||||
- name: Local fallback - Get list of local packages
|
||||
vars:
|
||||
|
||||
Reference in new issue
Block a user