From 61aa5c527a587f8959f47ac2b5d544699a6b2d80 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 8 May 2023 11:22:43 +0200 Subject: [PATCH] Update lutris role --- roles/lutris/tasks/main.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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] }}"