--- - name: This role only applies to Archlinux ansible.builtin.fail: when: ansible_facts['distribution'] != 'Archlinux' - name: Activate multilib repository become: true ansible.builtin.replace: path: /etc/pacman.conf regexp: '^#\[multilib\]\n#(Include.*)' replace: '[multilib]\n\1' backup: true notify: Update pacman cache - name: Flush handlers ansible.builtin.meta: flush_handlers - name: Install packages become: true community.general.pacman: name: - mesa - lib32-mesa - wine-staging - wine-mono - winetricks - lutris - steam - gamemode - lib32-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 - lib32-gst-plugins-base - gst-plugins-base-libs - lib32-gst-plugins-base-libs - vulkan-mesa-layers - lib32-vulkan-mesa-layers - vulkan-radeon - lib32-vulkan-radeon - vulkan-icd-loader - lib32-vulkan-icd-loader - directx-headers - vkd3d - lib32-vkd3d - amdvlk - lib32-amdvlk - xf86-video-amdgpu when: ansible_facts['distribution'] == 'Archlinux' - name: Add ~/Games directory ansible.builtin.file: path: ~/Games state: directory mode: 0755