Merge "Add retries to get_url and uri tasks"
This commit is contained in:
commit
507d90eab0
@ -17,3 +17,7 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
loop: "{{ apt_keys }}"
|
loop: "{{ apt_keys }}"
|
||||||
become: true
|
become: true
|
||||||
|
register: result
|
||||||
|
until: result is successful
|
||||||
|
retries: 3
|
||||||
|
delay: 5
|
||||||
|
@ -20,3 +20,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- Copy Dell switch BMP images
|
- Copy Dell switch BMP images
|
||||||
become: True
|
become: True
|
||||||
|
register: result
|
||||||
|
until: result is successful
|
||||||
|
retries: 3
|
||||||
|
delay: 5
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
url: "{{ image_download_checksum_url }}"
|
url: "{{ image_download_checksum_url }}"
|
||||||
return_content: true
|
return_content: true
|
||||||
register: expected_checksum
|
register: expected_checksum
|
||||||
|
until: expected_checksum is successful
|
||||||
|
retries: 3
|
||||||
|
delay: 5
|
||||||
when:
|
when:
|
||||||
- image_download_checksum_url is not none
|
- image_download_checksum_url is not none
|
||||||
- image_download_checksum_url != ""
|
- image_download_checksum_url != ""
|
||||||
@ -34,6 +37,10 @@
|
|||||||
# Always download the image if we have no checksum to compare with.
|
# Always download the image if we have no checksum to compare with.
|
||||||
force: "{{ expected_checksum is skipped }}"
|
force: "{{ expected_checksum is skipped }}"
|
||||||
backup: true
|
backup: true
|
||||||
|
register: result
|
||||||
|
until: result is successful
|
||||||
|
retries: 3
|
||||||
|
delay: 5
|
||||||
when:
|
when:
|
||||||
- image_download_url is not none
|
- image_download_url is not none
|
||||||
- image_download_url != ""
|
- image_download_url != ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user