Skip to content

Commit 5e03bae

Browse files
committed
Remote package tasks should have a retry
1 parent 672be72 commit 5e03bae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tasks/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
package:
55
name: centos-release-scl-rh
66
state: present
7+
register: network_access
8+
until: network_access is success
9+
retries: 10
10+
delay: 2
711
when: collections_enabled and ansible_distribution == 'CentOS'
812
tags:
913
- git
@@ -23,6 +27,10 @@
2327
name: "{{ base_git_rpms }}"
2428
state: present
2529
update_cache: yes
30+
register: network_access
31+
until: network_access is success
32+
retries: 10
33+
delay: 2
2634
tags:
2735
- git
2836
- base_git
@@ -60,6 +68,10 @@
6068
name: git
6169
state: present
6270
update_cache: yes
71+
register: network_access
72+
until: network_access is success
73+
retries: 10
74+
delay: 2
6375
tags:
6476
- git
6577
- base_git
@@ -70,6 +82,10 @@
7082
apt:
7183
name: git
7284
state: present
85+
register: network_access
86+
until: network_access is success
87+
retries: 10
88+
delay: 2
7389
tags:
7490
- git
7591
- base_git

0 commit comments

Comments
 (0)