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

Commit e58660e

Browse files
denmatpaulfantom
authored andcommitted
Add retries to package installs (#88)
* Add retry guard around package installs to avoid locking Both YUM and APT consistently display temporary locking when building via packer and ansible * retry usually only fires once anecdotally * Changing to make style consistent with other roles
1 parent 14a9fa2 commit e58660e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/install.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
package:
44
name: "{{ item }}"
55
state: present
6+
register: _install_dep_packages
7+
until: _install_dep_packages is success
8+
retries: 5
9+
delay: 2
610
with_items: "{{ node_exporter_dependencies }}"
711

812
- name: Create the node_exporter group

0 commit comments

Comments
 (0)