Skip to content

Commit

Permalink
Attempt using failed_when
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelmay committed Apr 3, 2022
1 parent 5cdc8b8 commit 64766c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@
update_cache: yes
register: apt_update
retries: 100
failed_when: apt_update.failed and 'Unable to connect to' not in apt_update.stderr
until: apt_update is success or ('Failed to lock apt for exclusive operation' not in apt_update.msg and '/var/lib/dpkg/lock' not in apt_update.msg)

0 comments on commit 64766c2

Please sign in to comment.