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
|
- name: install backend dependencies
|
||||||
apt:
|
apt:
|
||||||
name: python-requests
|
name: python-requests
|
||||||
|
register: result
|
||||||
|
retries: 3
|
||||||
|
delay: 1
|
||||||
|
until: result is success
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
packages:
|
packages:
|
||||||
- python-urllib3
|
- python-urllib3
|
||||||
- python-requests
|
- python-requests
|
||||||
|
register: result
|
||||||
|
retries: 1
|
||||||
|
delay: 1
|
||||||
|
until: result is success
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
||||||
- name: install backend dependencies
|
- name: install backend dependencies
|
||||||
|
@ -16,4 +20,8 @@
|
||||||
packages:
|
packages:
|
||||||
- urllib3
|
- urllib3
|
||||||
- requests
|
- requests
|
||||||
|
register: result
|
||||||
|
retries: 3
|
||||||
|
delay: 1
|
||||||
|
until: result is success
|
||||||
tags: sensu
|
tags: sensu
|
||||||
|
|
Loading…
Reference in a new issue