ansible/roles/desktop-common/tasks/packages.yml

242 lines
7.5 KiB
YAML
Raw Normal View History

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Configure system packages
block:
- name: Enable i386 architecture
lineinfile:
dest: /var/lib/dpkg/arch
line: i386
create: yes
- name: Add repo keys from keyserver
apt_key:
keyserver: 'keyserver.ubuntu.com'
id: "{{ item }}"
loop:
- "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop
- name: Add repo keys by URL
apt_key:
url: "{{ item }}"
loop:
- "https://syncthing.net/release-key.txt" # Syncthing
- "https://packages.riot.im/debian/riot-im-archive-keyring.gpg" # Element
- "https://download.spotify.com/debian/pubkey.gpg" # Spotify 1
- "https://download.spotify.com/debian/pubkey_0D811D58.gpg" # Spotify 2
- name: Add repos
apt_repository:
repo: "{{ item }}"
loop:
2020-09-22 15:16:38 -05:00
# Debs
- "deb http://repository.spotify.com stable non-free" # Spotify
- "deb https://apt.syncthing.net/ syncthing stable" # Syncthing
2020-09-22 15:16:38 -05:00
- "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" # Monodevelop
- "deb https://packages.riot.im/debian/ default main" # Element
2020-09-27 14:36:56 -05:00
# My PPA
2020-09-27 16:20:41 -05:00
#- "ppa:rehashedsalt/personal"
2020-07-08 09:06:29 -05:00
# First-party PPAs
- "ppa:phoerious/keepassxc" # KeepassXC
# Third-party PPAs
2020-09-22 15:16:38 -05:00
- "ppa:system76-dev/stable" # Love my lemp9
- "ppa:drewwalton19216801/dolphin-master-cosmic" # Because Dolphin doesn't update their shit
- "ppa:kgilmer/speed-ricer" # Rice rice rice
- "ppa:lutris-team/lutris" # Lutris is kickass
- name: Update and upgrade apt packages
apt:
upgrade: "yes"
update_cache: yes
# One day
cache_valid_time: 86400
- name: Install packages
apt:
name:
# Terminal packages
- adb
2020-09-25 01:57:51 -05:00
- bison
- build-essential
2020-06-29 03:46:26 -05:00
- cmake
2020-06-29 03:42:57 -05:00
- debhelper
2020-09-22 15:16:38 -05:00
- devscripts # Tons of cool shit in here, mostly for packaging tho
2020-06-29 03:42:57 -05:00
- dh-make
- earlyoom
- fastboot
- ffmpeg
2020-09-25 01:57:51 -05:00
- flex
- git
2020-09-29 10:04:05 -05:00
- glances # For temperature monitoring, mostly. It's pretty heavy
- imagemagick
2020-09-22 15:16:38 -05:00
- libinput-tools # Allows for libinput debugging
- lua-check # I am good ComputerCraft guy
2020-09-22 15:16:38 -05:00
- neofetch # I never use it but whatever I guess
- network-manager-openconnect
- network-manager-openvpn
2020-08-09 07:25:27 -05:00
- network-manager-vpnc # For default route configuration
2020-09-22 15:16:38 -05:00
- npm # I'm sorry
- openjdk-8-jre # For Minecraft
2020-09-22 15:16:38 -05:00
- pbuilder # Deb creation tool that does it all in a container
- pwgen
- python3-appdirs
- python3-eyed3
- python3-pip
- python3-pyqt5
- python3-usb # fuselee-gelee
- python3-venv
2020-09-22 15:16:38 -05:00
- qt5-default # For Multimc, should be installed on Kubuntu by default regardless
2020-07-23 02:07:54 -05:00
- traceroute
- tree
2020-09-22 15:16:38 -05:00
- units # How many bytes are in a mile?
2020-09-27 09:54:11 -05:00
- vagrant
- vagrant-libvirt
- vim
- wamerican # Dictionaries because I have like two scripts that use them
- wamerican-large
- wamerican-huge
- wamerican-insane
- wine
- wine-binfmt
- xz-utils # For Ansible deb support
# Fonts
2020-07-08 05:41:15 -05:00
- fonts-fork-awesome
- fonts-inconsolata
2020-08-08 07:32:21 -05:00
- fonts-material-design-icons-iconfont
- fonts-noto
- fonts-roboto
# DE
- bspwm
2020-09-22 15:16:38 -05:00
- conky-all # Why this is in several packages is beyond me
- dunst
2020-09-22 15:16:38 -05:00
- hsetroot # Works around a bug with Compton and a gray root window
- i3lock # Don't actually use this anymore (wew ksmserver)
2020-06-23 04:18:36 -05:00
- ibus
2020-09-22 15:16:38 -05:00
- ibus-mozc # Jap
- kubuntu-desktop # Sanity
- mozc-utils-gui
2020-06-29 10:28:18 -05:00
- nitrogen
- papirus-icon-theme
- pavucontrol-qt
2020-09-27 08:06:30 -05:00
- picom
- polybar
- qt5ct
2020-09-22 15:16:38 -05:00
- xbacklight # This works on literally none of my machines but fuck it
# Desktop applications
2020-09-22 15:16:38 -05:00
- barrier # FOSS Synergy
- cantata # MPD client
- chromium-browser
- chromium-chromedriver # Because Selenium
- clonezilla
- dolphin-emu-master
- dolphin-plugins
- element-desktop
2020-09-22 15:16:38 -05:00
- filelight # Sweet disk usage util
- filezilla
- firefox
2020-09-22 15:16:38 -05:00
- g810-led # For Logitech peripherals
- gimp
2020-09-22 15:16:38 -05:00
- inkscape # I use it for like two things
- joy2key # Neat little wrapper to bind joypad keys to keyboard keys
- joystick
- kcolorchooser
2020-09-22 15:16:38 -05:00
- kde-config-plymouth # Realistically not required, but whatever
- kdenlive # For the one video I edit a year
2020-07-04 06:22:26 -05:00
- kdepim
- keepassxc
2020-09-22 15:16:38 -05:00
- krita # I don't ever end up using this, maybe I'll pick it up for spritework
- libnotify-bin # Used for several of my scripts
2020-07-24 16:00:23 -05:00
- libretro-desmume
- libretro-mgba
- libretro-mupen64plus
- libretro-snes9x
- lutris
- mesa-vulkan-drivers
2020-09-22 15:16:38 -05:00
- mono-complete # Initial installation of this package may take an eternity
- monodevelop
- mpv
- mupen64plus-qt
- nextcloud-desktop
- obs-studio
2020-09-22 15:16:38 -05:00
- plymouth-theme-spinner # Gives us the good UEFI logo bootup
- pulseeffects # I need to be an echoey boi
2020-07-11 05:59:51 -05:00
- q4wine
- qbittorrent
2020-09-22 15:16:38 -05:00
- rdesktop # CLI RDP client, works real nice
- redshift
2020-07-24 16:00:23 -05:00
- retroarch
- rofi
2020-09-22 15:16:38 -05:00
- scrot # For scripted screenshots
- spotify-client
- steam-installer
- syncthing-gtk
- telegram-desktop
2020-09-22 15:16:38 -05:00
- torbrowser-launcher # Sometimes it's bugged but it's still nice to have
- virt-manager
- vulkan-tools
- vulkan-utils
- winetricks
- xdotool
2020-09-28 14:12:12 -05:00
- xserver-xephyr
- zim
2020-09-22 15:16:38 -05:00
# Other architectures, misc
- "libgl1-mesa-dri:i386"
- "mesa-vulkan-drivers:i386"
# Games
- minetest
- name: Install System76-exclusive packages
apt:
name:
- firmware-manager
2020-09-22 15:18:57 -05:00
- kamoso # Camera util
2020-08-07 09:16:01 -05:00
- system76-acpi-dkms
- system76-dkms
- system76-firmware
- system76-io-dkms
- system76-power
when: ansible_system_vendor == "System76"
- name: Install Focal-exclusive desktop applications
apt:
name:
2020-09-22 15:18:57 -05:00
- piper # Peripheral LED management
when: ansible_distribution_release == "focal"
- name: Install packages without recommends
apt:
install_recommends: no
name:
- php # Dev stuff
- php-xml
- name: Install out-of-repo packages
apt:
deb: "{{ item }}"
loop:
2020-09-16 22:33:41 -05:00
- "https://dl.discordapp.net/apps/linux/0.0.12/discord-0.0.12.deb"
- "https://downloads.slack-edge.com/linux_releases/slack-desktop-4.8.0-amd64.deb"
- "https://github.com/MultiMC/MultiMC5/releases/download/0.6.8/multimc_1.4-1.deb"
- "https://zoom.us/client/latest/zoom_amd64.deb"
# We ignore errors here in case we have a more up-to-date package on the target machine and/or face a URL timeout
ignore_errors: yes
- name: Install desktop applications through pip3
pip:
executable: "/usr/bin/pip3"
2020-09-03 18:31:08 -05:00
state: latest
name:
2020-09-03 18:31:08 -05:00
- pmbootstrap
- protontricks
- youtube-dl
2020-09-22 15:18:57 -05:00
# Just in case we have legacy apps floating around
- name: Remove Snap applications
snap:
name:
2020-09-16 22:33:41 -05:00
- discord
2020-07-23 01:27:02 -05:00
- pixelorama
- riot-web
- slack
2020-09-22 15:18:57 -05:00
- scrcpy
- sengi
- spotify
state: absent
- name: Remove desktop applications through APT
apt:
name:
- ktorrent
- mpd
2020-07-22 15:57:33 -05:00
- thunderbird
state: absent
become: yes