Move lutris to its own playbook while adding Debian support.
This commit is contained in:
parent
82269f8cc2
commit
fd156c6382
@ -123,6 +123,9 @@
|
||||
- include_tasks: tasks/workstation/linux/software/packages.yml
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- include_tasks: tasks/workstation/linux/software/lutris.yml
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- include_tasks: tasks/workstation/linux/software/brave.yml
|
||||
when: ansible_pkg_mgr in ("apt", "dnf", "zypper") and not mobile
|
||||
|
||||
|
52
tasks/workstation/linux/software/lutris.yml
Normal file
52
tasks/workstation/linux/software/lutris.yml
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
# Lutris for running Windows games not in Steam.
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Add PPA (Ubuntu)
|
||||
apt_repository:
|
||||
repo: ppa:lutris-team/lutris
|
||||
update_cache: yes
|
||||
state: present
|
||||
when: ansible_distribution in ("Ubuntu") and gaming == true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Add PPA (Debian)
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- echo "deb [signed-by=/etc/apt/keyrings/lutris.gpg] https://download.opensuse.org/repositories/home:/strycore/Debian_12/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list > /dev/null
|
||||
- wget -q -O- https://download.opensuse.org/repositories/home:/strycore/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/keyrings/lutris.gpg > /dev/null
|
||||
- sudo apt update
|
||||
when: ansible_distribution in ("Debian") and gaming == true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Install (besides ARM)
|
||||
package:
|
||||
name:
|
||||
- lutris
|
||||
state: present
|
||||
when: ansible_architecture != "aarch64" and gaming == true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Uninstall (besides ARM)
|
||||
package:
|
||||
name:
|
||||
- lutris
|
||||
state: absent
|
||||
when: ansible_architecture != "aarch64" and gaming is not defined
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Remove PPA (Ubuntu)
|
||||
apt_repository:
|
||||
repo: ppa:lutris-team/lutris
|
||||
update_cache: yes
|
||||
state: absent
|
||||
when: ansible_distribution in ("Ubuntu") and gaming is not defined
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Remove PPA (Debian)
|
||||
shell: "{{ item }}"
|
||||
loop:
|
||||
- mv /etc/apt/sources.list.d/lutris.list* ~/TRASH/
|
||||
- mv /etc/apt/keyrings/lutris.gpg ~/TRASH/
|
||||
- sudo apt update
|
||||
when: ansible_distribution in ("Debian") and gaming is not defined
|
||||
ignore_errors: yes
|
@ -41,40 +41,6 @@
|
||||
- gparted
|
||||
state: present
|
||||
|
||||
# Lutris #
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Add Lutris PPA (Ubuntu)
|
||||
apt_repository:
|
||||
repo: ppa:lutris-team/lutris
|
||||
update_cache: yes
|
||||
state: present
|
||||
when: ansible_distribution in ("Ubuntu", "Debian") and gaming == true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Add Lutris (besides ARM)
|
||||
package:
|
||||
name:
|
||||
- lutris
|
||||
state: present
|
||||
when: ansible_architecture != "aarch64" and gaming == true
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Remove Lutris (besides ARM)
|
||||
package:
|
||||
name:
|
||||
- lutris
|
||||
state: absent
|
||||
when: ansible_architecture != "aarch64" and gaming is not defined
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Remove Lutris PPA (Ubuntu)
|
||||
apt_repository:
|
||||
repo: ppa:lutris-team/lutris
|
||||
update_cache: yes
|
||||
state: absent
|
||||
when: ansible_distribution in ("Ubuntu", "Debian") and gaming is not defined
|
||||
ignore_errors: yes
|
||||
|
||||
# Remove Repo Software #
|
||||
|
||||
- name: Workstation | Linux | Software | Packages | Remove Applications
|
||||
|
Loading…
x
Reference in New Issue
Block a user