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

View file

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