Retry yum/apt/rpm download commands, fix succeeded filter

This commit is contained in:
Matthew Mosesohn
2017-03-17 12:55:17 +03:00
parent b4a1ba828a
commit 7760c3e4aa
4 changed files with 19 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
deb: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
state: present
register: rkt_task_result
until: rkt_task_result|success
until: rkt_task_result|succeeded
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
when: ansible_os_family == "Debian"
@@ -29,7 +29,7 @@
pkg: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
state: present
register: rkt_task_result
until: rkt_task_result|success
until: rkt_task_result|succeeded
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
when: ansible_os_family == "RedHat"