Skip to content

Commit

Permalink
podman apt install retry add
Browse files Browse the repository at this point in the history
  • Loading branch information
rayshoo committed Sep 4, 2021
1 parent 6d047cc commit fa396f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/builder/roles/podman/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
update_cache: yes
name: podman{{ '=' + version['podman'] if version['podman'] != 'latest' else '' }}
state: "{{ 'present' if version['podman'] != 'latest' else 'latest' }}"
register: result
until: result['changed'] == true
retries: 5
delay: 3

- name: Install podman
when: ansible_os_family == "RedHat"
Expand Down

0 comments on commit fa396f4

Please sign in to comment.