Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #86 from cloudalchemy/paulfantom-patch-1
Browse files Browse the repository at this point in the history
Retry when connecting to external services
  • Loading branch information
paulfantom authored Apr 5, 2018
2 parents f99003b + 4881c3f commit fb4059e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
dest: "/tmp"
remote_src: yes
creates: "/tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/prometheus"
register: _download_binary
until: _download_binary | success
retries: 5
delay: 2
run_once: true
delegate_to: localhost
check_mode: no
Expand Down Expand Up @@ -85,6 +89,10 @@
with_items:
- libselinux-python
- policycoreutils-python
register: _download_packages
until: _download_packages | success
retries: 5
delay: 2
when:
- ansible_os_family == "RedHat"

Expand Down

0 comments on commit fb4059e

Please sign in to comment.