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

Retry when connecting to external services #31

Merged
merged 2 commits into from
Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
dest: "/tmp"
remote_src: yes
creates: "/tmp/alertmanager-{{ alertmanager_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}/alertmanager"
register: _download_binary
until: _download_binary | success
retries: 5
delay: 2
run_once: true
delegate_to: localhost

Expand Down Expand Up @@ -65,6 +69,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