I am new to Ansible so please excuse me if I am subtle.
I am trying to fetch the URL produced by this command but I don't know if it's possible to do that.
curl -s https://api.github.com/repos/Radarr/Radarr/releases | grep linux.tar.gz | grep browser_download_url | head -1 | cut -d \" -f 4
I want to 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
Can anyone help me with this?
Thanks