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:
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.
If the file is already present, then the get_url_result.msg does not contain ‘OK’. I had to use
until: “‘OK’ in get_url_result.msg or ‘file already exists’ in get_url_result.msg”