Add role gaming
This commit is contained in:
parent
efb88c0937
commit
2c984ec534
4 changed files with 73 additions and 59 deletions
59
configs.yml
59
configs.yml
|
@ -10,62 +10,3 @@ etckeeper:
|
|||
condition: "[ ! -d /etc/.git ]"
|
||||
- run:
|
||||
- sudo etckeeper commit "First commit"
|
||||
|
||||
gaming:
|
||||
- run:
|
||||
command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup
|
||||
condition: "[ ! -e /etc/pacman.conf.backup ]"
|
||||
- run:
|
||||
- 'LINESTART=$(grep -n "\[multilib\]" /etc/pacman.conf | cut -d: -f1 | head -n1); LINEEND=$((LINESTART+1)); sudo sed -i "${LINESTART},${LINEEND} s/^#//" /etc/pacman.conf'
|
||||
- install:
|
||||
- wine-staging
|
||||
- winetricks
|
||||
- lutris
|
||||
- steam
|
||||
- gamemode
|
||||
- giflib
|
||||
- lib32-giflib
|
||||
- libpng
|
||||
- lib32-libpng
|
||||
- libldap
|
||||
- lib32-libldap
|
||||
- gnutls
|
||||
- lib32-gnutls
|
||||
- mpg123
|
||||
- lib32-mpg123
|
||||
- openal
|
||||
- lib32-openal
|
||||
- v4l-utils
|
||||
- lib32-v4l-utils
|
||||
- libpulse
|
||||
- lib32-libpulse
|
||||
- libgpg-error
|
||||
- lib32-libgpg-error
|
||||
- alsa-plugins
|
||||
- lib32-alsa-plugins
|
||||
- alsa-lib
|
||||
- lib32-alsa-lib
|
||||
- libjpeg-turbo
|
||||
- lib32-libjpeg-turbo
|
||||
- sqlite
|
||||
- lib32-sqlite
|
||||
- libxcomposite
|
||||
- lib32-libxcomposite
|
||||
- libxinerama
|
||||
- lib32-libxinerama
|
||||
- libgcrypt
|
||||
- lib32-libgcrypt
|
||||
- ncurses
|
||||
- lib32-ncurses
|
||||
- opencl-icd-loader
|
||||
- lib32-opencl-icd-loader
|
||||
- libxslt
|
||||
- lib32-libxslt
|
||||
- libva
|
||||
- lib32-libva
|
||||
- gtk3
|
||||
- lib32-gtk3
|
||||
- gst-plugins-base-libs
|
||||
- lib32-gst-plugins-base-libs
|
||||
- vulkan-icd-loader
|
||||
- lib32-vulkan-icd-loader
|
||||
|
|
|
@ -30,3 +30,4 @@
|
|||
- { role: mariadb, tags: mariadb }
|
||||
- { role: rsync-backup, tags: rsync-backup }
|
||||
- { role: gitea-backup, tags: gitea-backup }
|
||||
- { role: gaming, tags: gaming }
|
||||
|
|
3
roles/gaming/meta/main.yml
Normal file
3
roles/gaming/meta/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- role: check-sudo
|
69
roles/gaming/tasks/main.yml
Normal file
69
roles/gaming/tasks/main.yml
Normal file
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
- fail:
|
||||
when: ansible_distribution != 'Archlinux'
|
||||
|
||||
- name: Activate multilib repository
|
||||
become: true
|
||||
replace:
|
||||
path: /etc/pacman.conf
|
||||
regexp: '^#\[multilib\]\n#(Include.*)'
|
||||
replace: '[multilib]\n\1'
|
||||
backup: true
|
||||
|
||||
- name: Install packages
|
||||
become: true
|
||||
pacman:
|
||||
name:
|
||||
- wine-staging
|
||||
- winetricks
|
||||
- lutris
|
||||
- steam
|
||||
- gamemode
|
||||
- giflib
|
||||
- lib32-giflib
|
||||
- libpng
|
||||
- lib32-libpng
|
||||
- libldap
|
||||
- lib32-libldap
|
||||
- gnutls
|
||||
- lib32-gnutls
|
||||
- mpg123
|
||||
- lib32-mpg123
|
||||
- openal
|
||||
- lib32-openal
|
||||
- v4l-utils
|
||||
- lib32-v4l-utils
|
||||
- libpulse
|
||||
- lib32-libpulse
|
||||
- libgpg-error
|
||||
- lib32-libgpg-error
|
||||
- alsa-plugins
|
||||
- lib32-alsa-plugins
|
||||
- alsa-lib
|
||||
- lib32-alsa-lib
|
||||
- libjpeg-turbo
|
||||
- lib32-libjpeg-turbo
|
||||
- sqlite
|
||||
- lib32-sqlite
|
||||
- libxcomposite
|
||||
- lib32-libxcomposite
|
||||
- libxinerama
|
||||
- lib32-libxinerama
|
||||
- libgcrypt
|
||||
- lib32-libgcrypt
|
||||
- ncurses
|
||||
- lib32-ncurses
|
||||
- opencl-icd-loader
|
||||
- lib32-opencl-icd-loader
|
||||
- libxslt
|
||||
- lib32-libxslt
|
||||
- libva
|
||||
- lib32-libva
|
||||
- gtk3
|
||||
- lib32-gtk3
|
||||
- gst-plugins-base-libs
|
||||
- lib32-gst-plugins-base-libs
|
||||
- vulkan-icd-loader
|
||||
- lib32-vulkan-icd-loader
|
||||
update_cache: true
|
||||
when: ansible_distribution == 'Archlinux'
|
Loading…
Add table
Reference in a new issue