Merge "Added retry for multistrap"

This commit is contained in:
Zuul 2021-04-07 00:19:41 +00:00 committed by Gerrit Code Review
commit 053c992218
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,8 @@ kernel_base_pkg: linux-image-generic
kernel_headers_pkg: linux-headers-generic kernel_headers_pkg: linux-headers-generic
systemd_nic_names_policy: kernel database onboard path slot systemd_nic_names_policy: kernel database onboard path slot
systemd_nic_alternative_names_policy: database onboard path slot systemd_nic_alternative_names_policy: database onboard path slot
multistrap_retries: 3
multistrap_retries_delay: 3
ubuntu_packages: ubuntu_packages:
- apparmor - apparmor
- apt-file - apt-file

View File

@ -68,6 +68,10 @@
- name: "Running multistrap" - name: "Running multistrap"
shell: shell:
cmd: "multistrap -f {{ multistrap_tempdir.path }}/multistrap.conf" 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" - name: "Set systemd NIC naming"
template: template: