Skip to content

Commit 01c081a

Browse files
Add retry and delay for yum_lock
1 parent 47426ec commit 01c081a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

playbooks/roles/packages/tasks/el-7.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
- pyOpenSSL
66
- python2-cryptography
77
state: latest
8-
8+
register: packages_output
9+
retries: 5
10+
delay: 10
11+
until: packages_output is not failed
912

1013
- name: Make sure python3-oci-cli is installed
1114
yum:
1215
name:
1316
- python3-oci-cli
1417
state: latest
18+
register: oci_cli_output
19+
retries: 5
20+
delay: 10
21+
until: oci_cli_output is not failed

0 commit comments

Comments
 (0)