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:
@@ -73,8 +73,8 @@
|
||||
- name: "[CLONES] Start clone VM"
|
||||
ansible.builtin.command: "qm start {{ clone.id }}"
|
||||
register: clone_start
|
||||
retries: 3
|
||||
delay: 2
|
||||
retries: "{{ max_retries }}"
|
||||
delay: "{{ retry_delay }}"
|
||||
until: clone_start is succeeded
|
||||
when: not clone_conf.stat.exists
|
||||
|
||||
|
||||
Reference in New Issue
Block a user