All,
New to ansible and struggling a bit.
I want to use get_url on a list of files. But also due to issues with the server I am downloading from I want to retry the download on failure.
I have something like this:
- name: Download the packages
get_url: url=pkg_name.tar.bz2 dest=/opt/DIR_NAME force=yes url_password={{ svn_password }} url_username={{ svn_username }} use_proxy=no
register: get_url_result
until: get_url_result.rc == 0
retries: 5
delay: 10
with_items: pkg_list
Is this possible?
I cant seem to get the logic right or find out what the get_url returns in the failure case.
I just want to try no more than 5 times for each pkg in the package list.
Cheers
Dan