Skip to content

Commit

Permalink
devconfig: retry removal of unattended-upgrades
Browse files Browse the repository at this point in the history
Experience is showing we can run into a race with unattended-upgrades
already kicking off... so retry that removal hard. This will retry
up to 20 times every 30 seconds, for a total of up to 10 minutes,
otherwise we fail. If this still fails we'll have to work to remove
this on the image with virt-builder itself.

The affected guests are debian with this patch.

Signed-off-by: Luis Chamberlain <[email protected]>
  • Loading branch information
mcgrof committed Oct 28, 2024
1 parent f2f019e commit ec21a5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/roles/devconfig/tasks/install-deps/debian/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
apt:
name: unattended-upgrades
state: absent
register: removal_result
retries: 20
delay: 30
until: removal_result is not failed

- name: Remove optional unattended-upgrades configuration files if they exist
become: yes
Expand Down

0 comments on commit ec21a5e

Please sign in to comment.