fix: add retry for network tasks

This commit is contained in:
Adrien Waksberg 2019-02-17 08:49:47 +01:00
parent 961ce7a773
commit 0b5ccfa149
2 changed files with 12 additions and 0 deletions

View file

@ -2,4 +2,8 @@
- name: install backend dependencies
apt:
name: python-requests
register: result
retries: 3
delay: 1
until: result is success
tags: sensu

View file

@ -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