diff --git a/image-builder/assets/playbooks/roles/multistrap/defaults/main.yaml b/image-builder/assets/playbooks/roles/multistrap/defaults/main.yaml index f444e17..350b968 100644 --- a/image-builder/assets/playbooks/roles/multistrap/defaults/main.yaml +++ b/image-builder/assets/playbooks/roles/multistrap/defaults/main.yaml @@ -5,6 +5,8 @@ kernel_base_pkg: linux-image-generic kernel_headers_pkg: linux-headers-generic systemd_nic_names_policy: kernel database onboard path slot systemd_nic_alternative_names_policy: database onboard path slot +multistrap_retries: 3 +multistrap_retries_delay: 3 ubuntu_packages: - apparmor - apt-file diff --git a/image-builder/assets/playbooks/roles/multistrap/tasks/main.yaml b/image-builder/assets/playbooks/roles/multistrap/tasks/main.yaml index 6dfd180..1ba72ff 100644 --- a/image-builder/assets/playbooks/roles/multistrap/tasks/main.yaml +++ b/image-builder/assets/playbooks/roles/multistrap/tasks/main.yaml @@ -68,6 +68,10 @@ - name: "Running multistrap" shell: cmd: "multistrap -f {{ multistrap_tempdir.path }}/multistrap.conf" + retries: "{{ multistrap_retries }}" + delay: "{{ multistrap_retries_delay }}" + register: result + until: result.rc == 0 - name: "Set systemd NIC naming" template: