Skip to content

Commit 147980d

Browse files
committed
Attempt using failed_when
1 parent 1dc82e8 commit 147980d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/common/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@
6666
update_cache: yes
6767
register: apt_update
6868
retries: 100
69+
failed_when: apt_update.failed and 'Unable to connect to' not in apt_update.stderr
6970
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 commit comments

Comments
 (0)