I want to download the latest appimage of bitwarden, but only if the downloadable version is newer than the local one.
- name: Download and place Bitwarden Appimage
get_url:
url: "https://vault.bitwarden.com/download/?app=desktop&platform=linux"
follow: yes
dest: /home/user
register: foo
when: foo !== /home/user/Bitwarden-{1....9}-x86_64.AppImage
Is it possible to do this within the same task, or do I have to split it up over 2? Also is the regex syntax correct? The current version is: 1.25.1