I'm writing some ansible code to update a project from gitlab so I need to first check if the host computer and the version I'm trying to install are different from one another. I find the version on Gitlab from the file at
https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/download?job=test
using the uri module in ansible. The file downloaded has the version number in its name. "CompanyName-VersionNumber.zip"
But this has the effect of downloading the file as well. I want to be able to check what file would be downloaded before actually downloading it so I can do a version check.
This code will be run on both windows and linux machines, so if possible something that works on both would be preferred.