diff --git a/roles/lutris/tasks/main.yml b/roles/lutris/tasks/main.yml index 8480683..bab6c47 100644 --- a/roles/lutris/tasks/main.yml +++ b/roles/lutris/tasks/main.yml @@ -8,14 +8,25 @@ apt: update_cache: true - - name: add signal gpg key + - name: remove old ppa repository apt_repository: repo: ppa:lutris-team/lutris + state: absent - - name: install lutris + - name: install lutris libraries apt: update_cache: yes pkg: - - lutris - wine - - steam \ No newline at end of file + - steam + +- name: "Get Lutris version" + uri: + url: https://api.github.com/repos/lutris/lutris/releases/latest + body_format: json + register: git_info + +- name: Install deb package + become: yes + apt: + deb: "{{ (git_info.json | json_query('assets[*].browser_download_url') | select('match', '.*deb'))[0] }}"