diff --git a/tasks/install.yml b/tasks/install.yml index 49d44a38..aae3bfa8 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 @@ -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"