2020-02-17 16:15:45 -06:00
|
|
|
#!/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:
|
2020-02-20 04:02:01 -06:00
|
|
|
upgrade: "yes"
|
2020-02-17 16:15:45 -06:00
|
|
|
update_cache: yes
|
|
|
|
# One day
|
|
|
|
cache_valid_time: 86400
|
|
|
|
- name: Install basic packages
|
|
|
|
apt:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
2020-03-01 01:52:07 -06:00
|
|
|
- earlyoom
|
2020-02-17 20:28:38 -06:00
|
|
|
- ffmpeg
|
2020-02-17 16:15:45 -06:00
|
|
|
- git
|
2020-02-20 20:23:59 -06:00
|
|
|
- network-manager-openvpn
|
2020-02-17 16:15:45 -06:00
|
|
|
- openjdk-8-jre # For Minecraft
|
|
|
|
- python-pip
|
|
|
|
- python3-pip
|
|
|
|
- qt5-default # For Multimc, should be installed on Kubuntu
|
|
|
|
- vim
|
2020-02-23 03:24:39 -06:00
|
|
|
- wamerican # Dictionaries because I have like two scripts that use them
|
|
|
|
- wamerican-large
|
|
|
|
- wamerican-huge
|
|
|
|
- wamerican-insane
|
2020-02-17 16:15:45 -06:00
|
|
|
- xz-utils # For Ansible deb support
|
2020-02-28 04:12:03 -06:00
|
|
|
- name: Install packages with no-install-recommends
|
|
|
|
apt:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
install_recommends: no
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- php7.3 # Dev stuff
|
2020-02-29 03:02:38 -06:00
|
|
|
- php7.3-xml
|
2020-02-27 17:18:28 -06:00
|
|
|
- name: Install fonts
|
2020-02-17 16:15:45 -06:00
|
|
|
apt:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- fonts-inconsolata
|
|
|
|
- fonts-noto
|
|
|
|
- fonts-roboto
|
|
|
|
- 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:
|
2020-02-17 21:10:11 -06:00
|
|
|
- audacity
|
2020-02-17 16:15:45 -06:00
|
|
|
- chromium-browser
|
|
|
|
- firefox
|
|
|
|
- g810-led
|
2020-02-17 21:10:11 -06:00
|
|
|
- gimp
|
2020-02-18 02:53:12 -06:00
|
|
|
- kcolorchooser
|
2020-02-17 21:10:11 -06:00
|
|
|
- kdenlive
|
2020-02-17 16:15:45 -06:00
|
|
|
- keepassxc
|
|
|
|
- lutris
|
|
|
|
- mesa-vulkan-drivers
|
|
|
|
- mpc
|
|
|
|
- mpd
|
2020-02-17 20:28:38 -06:00
|
|
|
- mpv
|
2020-02-17 16:15:45 -06:00
|
|
|
- nextcloud-desktop
|
2020-02-17 20:28:38 -06:00
|
|
|
- obs-studio
|
2020-02-17 16:15:45 -06:00
|
|
|
- redshift
|
|
|
|
- rofi
|
|
|
|
- sonata
|
|
|
|
- steam-installer
|
|
|
|
- syncthing-gtk
|
|
|
|
- telegram-desktop
|
2020-02-22 16:35:01 -06:00
|
|
|
- torbrowser-launcher
|
|
|
|
- virt-manager
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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
|
2020-02-22 16:35:01 -06:00
|
|
|
- name: Stop services
|
2020-02-17 16:15:45 -06:00
|
|
|
systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
enabled: no
|
|
|
|
state: stopped
|
|
|
|
loop:
|
|
|
|
- mpd.socket
|
|
|
|
- mpd.service
|
2020-02-23 00:30:13 -06:00
|
|
|
- name: Odd one-off tasks
|
|
|
|
block:
|
|
|
|
- name: Link in wamerican-insane dictionary
|
|
|
|
file:
|
|
|
|
path: /etc/dictionaries-common/words
|
|
|
|
state: link
|
2020-02-23 03:24:39 -06:00
|
|
|
src: /usr/share/dict/american-english
|
2020-02-17 16:15:45 -06:00
|
|
|
become: yes
|