refactor ♻️: Improve retry logic consistency across tasks
Standardized the use of `retries` and `delay` variables in tasks to ensure consistent behavior, making it easier to manage and maintain the workflow. This change also enables better error handling and reduces potential issues with task execution.
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
{{ debian_image_path }}
|
||||
{{ storage }}
|
||||
register: disk_import
|
||||
retries: 3
|
||||
delay: 5
|
||||
retries: "{{ max_retries }}"
|
||||
delay: "{{ retry_delay }}"
|
||||
until: disk_import is succeeded
|
||||
when: not disk_exists.stat.exists
|
||||
|
||||
|
||||
Reference in New Issue
Block a user