fix: add retry for network tasks
This commit is contained in:
parent
961ce7a773
commit
0b5ccfa149
2 changed files with 12 additions and 0 deletions
|
@ -2,4 +2,8 @@
|
|||
- name: install backend dependencies
|
||||
apt:
|
||||
name: python-requests
|
||||
register: result
|
||||
retries: 3
|
||||
delay: 1
|
||||
until: result is success
|
||||
tags: sensu
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
packages:
|
||||
- python-urllib3
|
||||
- python-requests
|
||||
register: result
|
||||
retries: 1
|
||||
delay: 1
|
||||
until: result is success
|
||||
tags: sensu
|
||||
|
||||
- name: install backend dependencies
|
||||
|
@ -16,4 +20,8 @@
|
|||
packages:
|
||||
- urllib3
|
||||
- requests
|
||||
register: result
|
||||
retries: 3
|
||||
delay: 1
|
||||
until: result is success
|
||||
tags: sensu
|
||||
|
|
Loading…
Reference in a new issue