diff --git a/tasks/configure-vm.yml b/tasks/configure-vm.yml index dab7e05..c64c4b2 100644 --- a/tasks/configure-vm.yml +++ b/tasks/configure-vm.yml @@ -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 diff --git a/tasks/create-clones.yml b/tasks/create-clones.yml index 8c67706..55e08b1 100644 --- a/tasks/create-clones.yml +++ b/tasks/create-clones.yml @@ -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 diff --git a/tasks/download-image.yml b/tasks/download-image.yml index ee4e605..0502fdc 100644 --- a/tasks/download-image.yml +++ b/tasks/download-image.yml @@ -19,10 +19,10 @@ url: "{{ debian_image_url }}" dest: "{{ debian_image_path }}" mode: "0644" - timeout: 300 + timeout: "{{ image_download_timeout }}" register: image_download - retries: 3 - delay: 5 + retries: "{{ max_retries }}" + delay: "{{ retry_delay }}" until: image_download is succeeded when: not debian_img.stat.exists