ansible/roles/desktop/tasks/main.yml

147 lines
3.7 KiB
YAML
Raw Normal View History

#!/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" }
2020-03-21 22:21:25 -05:00
- { src: "switch-rcm.rules", dest: "/etc/udev/rules.d/50-switch-rcm.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:
2020-03-21 23:01:01 -05:00
- "ppa:drewwalton19216801/dolphin-master-cosmic" # Because Dolphin doesn't update their shit
2020-04-15 08:58:13 -05:00
- "ppa:lutris-team/lutris"
- "ppa:kgilmer/speed-ricer"
- name: Update and upgrade apt packages
apt:
upgrade: "yes"
update_cache: yes
# One day
cache_valid_time: 86400
2020-04-15 09:01:11 -05:00
- name: Install terminal packages
apt:
2020-04-15 08:59:19 -05:00
name:
2020-03-16 05:45:41 -05:00
- adb
- build-essential
2020-03-01 01:52:07 -06:00
- earlyoom
2020-03-16 05:45:41 -05:00
- fastboot
2020-02-17 20:28:38 -06:00
- ffmpeg
- git
2020-02-20 20:23:59 -06:00
- network-manager-openvpn
- openjdk-8-jre # For Minecraft
- python-pip
2020-03-04 00:44:11 -06:00
- python3-appdirs
- python3-eyed3
- python3-pip
2020-03-07 16:58:26 -06:00
- python3-pyqt5
2020-03-16 17:23:12 -05:00
- python3-usb # fuselee-gelee
2020-03-03 16:59:57 -06:00
- python3-venv
- qt5-default # For Multimc, should be installed on Kubuntu
2020-03-02 05:51:31 -06:00
- units
- vim
- wamerican # Dictionaries because I have like two scripts that use them
- wamerican-large
- wamerican-huge
- wamerican-insane
- xz-utils # For Ansible deb support
2020-04-15 09:01:11 -05:00
- name: Install development packages
apt:
install_recommends: no
2020-04-15 08:59:19 -05:00
name:
- 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
apt:
2020-04-15 08:59:19 -05:00
name:
- fonts-inconsolata
- fonts-noto
- fonts-roboto
- name: Install games
apt:
2020-04-15 08:59:19 -05:00
name:
- 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"
2020-04-15 09:01:11 -05:00
- name: Install desktop applications through APT
apt:
2020-04-15 08:59:19 -05:00
name:
2020-03-04 04:22:33 -06:00
- cantata
- chromium-browser
2020-03-21 23:01:01 -05:00
- dolphin-emu-master
2020-03-21 22:35:53 -05:00
- dolphin-plugins
2020-03-21 22:41:18 -05:00
- filelight
- firefox
- g810-led
- gimp
2020-02-18 02:53:12 -06:00
- kcolorchooser
- kdenlive
- keepassxc
2020-03-21 22:35:53 -05:00
- kubuntu-desktop
- lutris
- mesa-vulkan-drivers
- mpc
- mpd
2020-02-17 20:28:38 -06:00
- mpv
2020-03-25 06:57:45 -05:00
- mupen64plus-qt
- nextcloud-desktop
2020-02-17 20:28:38 -06:00
- obs-studio
2020-03-23 02:28:22 -05:00
- pulseeffects
- qbittorrent
- redshift
- rofi
- sonata
- steam-installer
- syncthing-gtk
- telegram-desktop
2020-02-22 16:35:01 -06:00
- torbrowser-launcher
- virt-manager
- vulkan-tools
- vulkan-utils
- winetricks
2020-03-27 08:12:02 -05:00
- xdotool
- "libgl1-mesa-dri:i386"
- "mesa-vulkan-drivers:i386"
2020-04-15 09:01:11 -05:00
- name: Install desktop applications through pip3
pip:
executable: "/usr/bin/pip3"
2020-04-15 08:59:19 -05:00
name:
- protontricks
- youtube-dl
2020-04-15 09:01:11 -05:00
- name: Install desktop applications through Snap
snap:
2020-04-15 08:59:19 -05:00
name:
- discord
- riot-web
2020-03-16 05:45:41 -05:00
- scrcpy # Remote Android viewing
2020-02-22 16:35:01 -06:00
- name: Stop services
systemd:
name: "{{ item }}"
enabled: no
state: stopped
loop:
- mpd.socket
- mpd.service
become: yes