First of all, I'm still an ansible newbie, so please excuse my ignorance.
I don't know if that's even possible, but I'm trying to get the URL produced by this command:
curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4
and use it in play to download the package:
here is my play:
- name: download Radarr
get_url:
url: "{{ Radarr_exe_url }}" #should be the url from above
dest: "{{ Radarr_data_path }}"
become: true
become_user: "{{ Radarr_user_name }}"
notify:
- Restart Radarr service