download latest version of base software

This commit is contained in:
abrown38 committed 2024-09-20 11:16:21 +01:00
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: