fallback to using local nupkg copies if rate limiting is applied

This commit is contained in:
abrown38 committed 2024-04-30 08:28:53 +00:00
1 parent 18fafbe1d0
commit e44a1566ad
1 file changed
+19 -1
@@ -20,6 +20,24 @@
loop_control:
loop_var: package
pause: 10
resuce: # Fallback to local copies if rate limiting causes failure
- name: Local fallback - Get list of local packages
vars:
ansible_connection: local
find:
paths: "{{ community_package_path }}"
file_type: file
patterns: "*.nupkg"
delegate_to: localhost
register: local_community_packages
- name: Local fallback - Copy community packages to Chocolatey server.
win_copy:
src: "{{ package.path }}"
dest: "{{ choco_package_path }}\\"
loop: "{{ local_community_packages.files }}"
loop_control:
loop_var: package
- name: Custom Packages
tags:
@@ -35,7 +53,7 @@
delegate_to: localhost
register: local_packages
- name: Copy custom packaged software to Chocolatey server.
- name: Copy custom packages to Chocolatey server.
win_copy:
src: "{{ package.path }}"
dest: "{{ choco_package_path }}\\"