mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-28 04:57:21 +00:00
fallback to using local nupkg copies if rate limiting is applied
This commit is contained in:
1 parent
18fafbe1d0
commit
e44a1566ad
1 file changed
+19
-1
@@ -20,6 +20,24 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
loop_var: package
|
loop_var: package
|
||||||
pause: 10
|
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
|
- name: Custom Packages
|
||||||
tags:
|
tags:
|
||||||
@@ -35,7 +53,7 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
register: local_packages
|
register: local_packages
|
||||||
|
|
||||||
- name: Copy custom packaged software to Chocolatey server.
|
- name: Copy custom packages to Chocolatey server.
|
||||||
win_copy:
|
win_copy:
|
||||||
src: "{{ package.path }}"
|
src: "{{ package.path }}"
|
||||||
dest: "{{ choco_package_path }}\\"
|
dest: "{{ choco_package_path }}\\"
|
||||||
|
|||||||
Reference in new issue
Block a user