2020-06-15 08:41:26 -05:00
|
|
|
#!/usr/bin/ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
- name: Configure system packages
|
|
|
|
block:
|
|
|
|
- name: Enable i386 architecture
|
2020-07-05 08:56:35 -05:00
|
|
|
lineinfile:
|
|
|
|
dest: /var/lib/dpkg/arch
|
|
|
|
line: i386
|
|
|
|
create: yes
|
2020-07-22 08:44:56 -05:00
|
|
|
- name: Add repo keys from keyserver
|
2020-06-15 08:41:26 -05:00
|
|
|
apt_key:
|
|
|
|
keyserver: 'keyserver.ubuntu.com'
|
|
|
|
id: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop
|
2020-07-22 08:44:56 -05:00
|
|
|
- name: Add repo keys by URL
|
|
|
|
apt_key:
|
|
|
|
url: "{{ item }}"
|
|
|
|
loop:
|
2020-09-24 07:49:46 -05:00
|
|
|
- "https://syncthing.net/release-key.txt" # Syncthing
|
2020-07-22 08:44:56 -05:00
|
|
|
- "https://packages.riot.im/debian/riot-im-archive-keyring.gpg" # Element
|
2020-09-16 13:59:31 -05:00
|
|
|
- "https://download.spotify.com/debian/pubkey.gpg" # Spotify 1
|
|
|
|
- "https://download.spotify.com/debian/pubkey_0D811D58.gpg" # Spotify 2
|
2020-06-15 08:41:26 -05:00
|
|
|
- name: Add repos
|
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
loop:
|
2020-09-22 15:16:38 -05:00
|
|
|
# Debs
|
2020-10-02 03:39:41 -05:00
|
|
|
- "deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main" # Slack
|
2020-09-22 15:16:38 -05:00
|
|
|
- "deb http://repository.spotify.com stable non-free" # Spotify
|
2020-09-24 07:49:46 -05:00
|
|
|
- "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
|
2020-06-15 08:41:26 -05:00
|
|
|
- "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
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- earlyoom
|
|
|
|
- fastboot
|
|
|
|
- ffmpeg
|
2020-09-25 01:57:51 -05:00
|
|
|
- flex
|
2020-06-15 08:41:26 -05:00
|
|
|
- git
|
2020-09-29 10:04:05 -05:00
|
|
|
- glances # For temperature monitoring, mostly. It's pretty heavy
|
2020-06-15 08:41:26 -05:00
|
|
|
- imagemagick
|
2020-09-22 15:16:38 -05:00
|
|
|
- libinput-tools # Allows for libinput debugging
|
2020-06-15 08:41:26 -05:00
|
|
|
- lua-check # I am good ComputerCraft guy
|
2020-09-22 15:16:38 -05:00
|
|
|
- neofetch # I never use it but whatever I guess
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- openjdk-8-jre # For Minecraft
|
2020-09-22 15:16:38 -05:00
|
|
|
- pbuilder # Deb creation tool that does it all in a container
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- fonts-inconsolata
|
2020-08-08 07:32:21 -05:00
|
|
|
- fonts-material-design-icons-iconfont
|
2020-06-15 08:41:26 -05:00
|
|
|
- fonts-noto
|
|
|
|
- fonts-roboto
|
|
|
|
# DE
|
2020-06-29 06:18:55 -05:00
|
|
|
- bspwm
|
2020-09-22 15:16:38 -05:00
|
|
|
- conky-all # Why this is in several packages is beyond me
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-08-11 05:18:38 -05:00
|
|
|
- mozc-utils-gui
|
2020-06-29 10:28:18 -05:00
|
|
|
- nitrogen
|
2020-06-15 08:41:26 -05:00
|
|
|
- papirus-icon-theme
|
|
|
|
- pavucontrol-qt
|
2020-09-27 08:06:30 -05:00
|
|
|
- picom
|
2020-06-15 08:41:26 -05:00
|
|
|
- polybar
|
|
|
|
- qt5ct
|
2020-09-22 15:16:38 -05:00
|
|
|
- xbacklight # This works on literally none of my machines but fuck it
|
2020-06-15 08:41:26 -05:00
|
|
|
# Desktop applications
|
2020-10-01 07:52:14 -05:00
|
|
|
- alsa-tools-gui # For reprobing my front jack, I guess??
|
2020-09-22 15:16:38 -05:00
|
|
|
- barrier # FOSS Synergy
|
|
|
|
- cantata # MPD client
|
2020-06-15 08:41:26 -05:00
|
|
|
- chromium-browser
|
|
|
|
- chromium-chromedriver # Because Selenium
|
|
|
|
- clonezilla
|
|
|
|
- dolphin-emu-master
|
|
|
|
- dolphin-plugins
|
2020-07-22 08:44:56 -05:00
|
|
|
- element-desktop
|
2020-09-22 15:16:38 -05:00
|
|
|
- filelight # Sweet disk usage util
|
2020-06-15 08:41:26 -05:00
|
|
|
- filezilla
|
|
|
|
- firefox
|
2020-09-22 15:16:38 -05:00
|
|
|
- g810-led # For Logitech peripherals
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- lutris
|
|
|
|
- mesa-vulkan-drivers
|
2020-09-22 15:16:38 -05:00
|
|
|
- mono-complete # Initial installation of this package may take an eternity
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- qbittorrent
|
2020-09-22 15:16:38 -05:00
|
|
|
- rdesktop # CLI RDP client, works real nice
|
2020-06-15 08:41:26 -05:00
|
|
|
- redshift
|
2020-07-24 16:00:23 -05:00
|
|
|
- retroarch
|
2020-06-15 08:41:26 -05:00
|
|
|
- rofi
|
2020-09-22 15:16:38 -05:00
|
|
|
- scrot # For scripted screenshots
|
2020-10-02 03:39:41 -05:00
|
|
|
- slack-desktop
|
2020-09-16 13:59:31 -05:00
|
|
|
- spotify-client
|
2020-06-15 08:41:26 -05:00
|
|
|
- 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- virt-manager
|
|
|
|
- vulkan-tools
|
|
|
|
- vulkan-utils
|
|
|
|
- winetricks
|
|
|
|
- xdotool
|
2020-09-28 14:12:12 -05:00
|
|
|
- xserver-xephyr
|
2020-06-15 08:41:26 -05:00
|
|
|
- zim
|
2020-09-22 15:16:38 -05:00
|
|
|
# Other architectures, misc
|
2020-06-15 08:41:26 -05:00
|
|
|
- "libgl1-mesa-dri:i386"
|
|
|
|
- "mesa-vulkan-drivers:i386"
|
|
|
|
# Games
|
|
|
|
- minetest
|
2020-08-07 09:04:34 -05:00
|
|
|
- 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
|
2020-08-07 09:04:34 -05:00
|
|
|
when: ansible_system_vendor == "System76"
|
2020-06-15 08:41:26 -05:00
|
|
|
- name: Install Focal-exclusive desktop applications
|
|
|
|
apt:
|
|
|
|
name:
|
2020-09-22 15:18:57 -05:00
|
|
|
- piper # Peripheral LED management
|
2020-06-15 08:41:26 -05:00
|
|
|
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"
|
2020-06-15 08:41:26 -05:00
|
|
|
- "https://github.com/MultiMC/MultiMC5/releases/download/0.6.8/multimc_1.4-1.deb"
|
2020-07-01 23:22:25 -05:00
|
|
|
- "https://zoom.us/client/latest/zoom_amd64.deb"
|
2020-09-20 11:12:41 -05:00
|
|
|
# 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
|
2020-06-15 08:41:26 -05:00
|
|
|
- name: Install desktop applications through pip3
|
|
|
|
pip:
|
|
|
|
executable: "/usr/bin/pip3"
|
2020-09-03 18:31:08 -05:00
|
|
|
state: latest
|
2020-06-15 08:41:26 -05:00
|
|
|
name:
|
2020-09-03 18:31:08 -05:00
|
|
|
- pmbootstrap
|
2020-06-15 08:41:26 -05:00
|
|
|
- protontricks
|
|
|
|
- youtube-dl
|
2020-09-22 15:18:57 -05:00
|
|
|
# Just in case we have legacy apps floating around
|
2020-07-22 08:44:56 -05:00
|
|
|
- name: Remove Snap applications
|
|
|
|
snap:
|
|
|
|
name:
|
2020-09-16 22:33:41 -05:00
|
|
|
- discord
|
2020-07-23 01:27:02 -05:00
|
|
|
- pixelorama
|
2020-07-22 08:44:56 -05:00
|
|
|
- riot-web
|
2020-09-16 12:29:07 -05:00
|
|
|
- slack
|
2020-09-22 15:18:57 -05:00
|
|
|
- scrcpy
|
2020-09-22 15:05:56 -05:00
|
|
|
- sengi
|
2020-09-16 13:59:31 -05:00
|
|
|
- spotify
|
2020-07-22 08:44:56 -05:00
|
|
|
state: absent
|
2020-06-15 08:41:26 -05:00
|
|
|
- name: Remove desktop applications through APT
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- ktorrent
|
|
|
|
- mpd
|
2020-07-22 15:57:33 -05:00
|
|
|
- thunderbird
|
2020-06-15 08:41:26 -05:00
|
|
|
state: absent
|
|
|
|
become: yes
|