ansible-desktop/roles/lutris/tasks/main.yml

33 lines
703 B
YAML

---
- become: yes
block:
- name: Add i386 Architecture
command: dpkg --add-architecture i386
- name: Update APT Cache for i386
apt:
update_cache: true
- name: remove old ppa repository
apt_repository:
repo: ppa:lutris-team/lutris
state: absent
- name: install lutris libraries
apt:
update_cache: yes
pkg:
- wine
- 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] }}"