128 lines
3.0 KiB
YAML
128 lines
3.0 KiB
YAML
#!/usr/bin/ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
- name: Configure desktop system
|
|
block:
|
|
- name: Create config directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
recurse: yes
|
|
loop:
|
|
- "/etc/X11/xorg.conf.d"
|
|
- name: Copy system configs
|
|
template:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
mode: "{{ item.mode }}"
|
|
loop:
|
|
- { src: "hosts", dest: "/etc/hosts", mode: "0644" }
|
|
- { src: "nomouseaccel.conf", dest: "/etc/X11/xorg.conf.d/90-mouse-acceleration.conf", mode: "0644" }
|
|
- { src: "g810-led.rules", dest: "/etc/udev/rules.d/50-g810-led.rules", mode: "0644" }
|
|
- name: Reload udev
|
|
command: /usr/bin/udevadm trigger
|
|
- name: Enable i386 architecture
|
|
command: /usr/bin/dpkg --add-architecture i386
|
|
- name: Add repos
|
|
apt_repository:
|
|
repo: "{{ item }}"
|
|
loop:
|
|
- "ppa:lutris-team/lutris"
|
|
- name: Update and upgrade apt packages
|
|
apt:
|
|
upgrade: "yes"
|
|
update_cache: yes
|
|
# One day
|
|
cache_valid_time: 86400
|
|
- name: Install basic packages
|
|
apt:
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- build-essential
|
|
- ffmpeg
|
|
- git
|
|
- network-manager-openvpn
|
|
- openjdk-8-jre # For Minecraft
|
|
- python-pip
|
|
- python3-pip
|
|
- qt5-default # For Multimc, should be installed on Kubuntu
|
|
- vim
|
|
- xz-utils # For Ansible deb support
|
|
- name: Install fonts and themes
|
|
apt:
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- arc-theme
|
|
- fonts-inconsolata
|
|
- fonts-noto
|
|
- fonts-roboto
|
|
- papirus-icon-theme
|
|
- name: Install games
|
|
apt:
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- minetest
|
|
- name: Install out-of-repo packages
|
|
apt:
|
|
deb: "{{ item }}"
|
|
loop:
|
|
- "https://github.com/MultiMC/MultiMC5/releases/download/0.6.8/multimc_1.4-1.deb"
|
|
- name: Install applications through APT
|
|
apt:
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- audacity
|
|
- chromium-browser
|
|
- firefox
|
|
- g810-led
|
|
- gimp
|
|
- kcolorchooser
|
|
- kdenlive
|
|
- keepassxc
|
|
- lutris
|
|
- mesa-vulkan-drivers
|
|
- mpc
|
|
- mpd
|
|
- mpv
|
|
- nextcloud-desktop
|
|
- obs-studio
|
|
- redshift
|
|
- rofi
|
|
- sonata
|
|
- steam-installer
|
|
- syncthing-gtk
|
|
- telegram-desktop
|
|
- vulkan-tools
|
|
- vulkan-utils
|
|
- winetricks
|
|
- "libgl1-mesa-dri:i386"
|
|
- "mesa-vulkan-drivers:i386"
|
|
- name: Install applications through pip3
|
|
pip:
|
|
executable: "/usr/bin/pip3"
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- protontricks
|
|
- youtube-dl
|
|
- name: Install applications through Snap
|
|
snap:
|
|
name: "{{ packages }}"
|
|
vars:
|
|
packages:
|
|
- discord
|
|
- riot-web
|
|
- name: Disable MPD services
|
|
systemd:
|
|
name: "{{ item }}"
|
|
enabled: no
|
|
state: stopped
|
|
loop:
|
|
- mpd.socket
|
|
- mpd.service
|
|
become: yes
|