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"
|
2020-04-15 09:57:41 -05:00
|
|
|
- name: Nuke some configs
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
# Works around a bug where this causes failed logins
|
|
|
|
- "/etc/X11/Xsession.d/70im-config_launch"
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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" }
|
2020-05-06 00:02:39 -05:00
|
|
|
- { src: "i3.desktop", dest: "/usr/share/xsessions/i3-custom.desktop", mode: "0644" }
|
2020-05-24 23:24:00 -05:00
|
|
|
- { src: "startx.desktop", dest: "/usr/share/xsessions/startx-custom.desktop", mode: "0644" }
|
2020-05-06 00:02:39 -05:00
|
|
|
- name: Copy udev rules
|
|
|
|
template:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
mode: "{{ item.mode }}"
|
|
|
|
loop:
|
2020-02-17 16:15:45 -06:00
|
|
|
- { 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" }
|
2020-05-06 00:02:39 -05:00
|
|
|
notify: reload udev
|
2020-02-17 16:15:45 -06:00
|
|
|
- name: Enable i386 architecture
|
|
|
|
command: /usr/bin/dpkg --add-architecture i386
|
2020-05-26 11:19:54 -05:00
|
|
|
- name: Add repo keys
|
|
|
|
apt_key:
|
|
|
|
keyserver: 'keyserver.ubuntu.com'
|
|
|
|
id: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop
|
2020-02-17 16:15:45 -06:00
|
|
|
- name: Add repos
|
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
loop:
|
2020-05-26 11:19:54 -05:00
|
|
|
- "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" # Monodevelop; see above for key
|
2020-03-21 23:01:01 -05:00
|
|
|
- "ppa:drewwalton19216801/dolphin-master-cosmic" # Because Dolphin doesn't update their shit
|
2020-05-24 23:00:09 -05:00
|
|
|
- "ppa:kgilmer/speed-ricer" # Rice rice rice
|
2020-04-15 08:58:13 -05:00
|
|
|
- "ppa:lutris-team/lutris"
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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
|
2020-05-24 23:03:15 -05:00
|
|
|
- name: Install packages
|
2020-02-17 16:15:45 -06:00
|
|
|
apt:
|
2020-04-15 08:59:19 -05:00
|
|
|
name:
|
2020-05-24 23:03:15 -05:00
|
|
|
# Terminal packages
|
2020-03-16 05:45:41 -05:00
|
|
|
- adb
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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
|
2020-02-17 16:15:45 -06:00
|
|
|
- git
|
2020-05-28 22:42:40 -05:00
|
|
|
- imagemagick
|
2020-04-21 08:17:35 -05:00
|
|
|
- lua-check # I am good ComputerCraft guy
|
2020-05-28 21:52:53 -05:00
|
|
|
- neofetch
|
2020-04-22 23:13:48 -05:00
|
|
|
- network-manager-openconnect
|
2020-02-20 20:23:59 -06:00
|
|
|
- network-manager-openvpn
|
2020-02-17 16:15:45 -06:00
|
|
|
- openjdk-8-jre # For Minecraft
|
2020-04-18 01:29:28 -05:00
|
|
|
- pwgen
|
2020-03-04 00:44:11 -06:00
|
|
|
- python3-appdirs
|
2020-03-04 03:02:35 -06:00
|
|
|
- python3-eyed3
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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
|
2020-02-17 16:15:45 -06:00
|
|
|
- qt5-default # For Multimc, should be installed on Kubuntu
|
2020-03-02 05:51:31 -06:00
|
|
|
- units
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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-05-08 22:49:33 -05:00
|
|
|
- wine
|
|
|
|
- wine-binfmt
|
2020-02-17 16:15:45 -06:00
|
|
|
- xz-utils # For Ansible deb support
|
2020-05-24 23:03:15 -05:00
|
|
|
# Fonts
|
2020-02-17 16:15:45 -06:00
|
|
|
- fonts-inconsolata
|
|
|
|
- fonts-noto
|
|
|
|
- fonts-roboto
|
2020-05-24 23:03:15 -05:00
|
|
|
# DE
|
2020-05-24 23:05:12 -05:00
|
|
|
- compton
|
|
|
|
- dunst
|
2020-06-01 00:49:19 -05:00
|
|
|
- hsetroot
|
2020-05-24 23:05:12 -05:00
|
|
|
- i3-gaps-wm
|
|
|
|
- i3lock
|
2020-05-24 23:03:15 -05:00
|
|
|
- kubuntu-desktop
|
2020-05-24 23:45:29 -05:00
|
|
|
- papirus-icon-theme
|
2020-05-31 17:33:59 -05:00
|
|
|
- pavucontrol-qt
|
2020-05-24 23:05:12 -05:00
|
|
|
- polybar
|
2020-05-31 17:34:35 -05:00
|
|
|
- xbacklight
|
2020-05-24 23:03:15 -05:00
|
|
|
# Desktop applications
|
2020-03-04 04:22:33 -06:00
|
|
|
- cantata
|
2020-02-17 16:15:45 -06:00
|
|
|
- chromium-browser
|
2020-05-10 01:04:43 -05:00
|
|
|
- clonezilla
|
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
|
2020-04-23 00:27:10 -05:00
|
|
|
- filezilla
|
2020-02-17 16:15:45 -06:00
|
|
|
- firefox
|
|
|
|
- g810-led
|
2020-02-17 21:10:11 -06:00
|
|
|
- gimp
|
2020-05-31 20:40:23 -05:00
|
|
|
- inkscape
|
2020-05-02 10:21:44 -05:00
|
|
|
- joy2key
|
|
|
|
- joystick
|
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
|
2020-05-29 17:39:04 -05:00
|
|
|
- krita
|
2020-05-28 21:52:53 -05:00
|
|
|
- libnotify-bin
|
2020-02-17 16:15:45 -06:00
|
|
|
- lutris
|
|
|
|
- mesa-vulkan-drivers
|
2020-05-26 11:19:54 -05:00
|
|
|
- monodevelop
|
2020-02-17 16:15:45 -06:00
|
|
|
- mpc
|
|
|
|
- mpd
|
2020-02-17 20:28:38 -06:00
|
|
|
- mpv
|
2020-03-25 06:57:45 -05:00
|
|
|
- mupen64plus-qt
|
2020-02-17 16:15:45 -06:00
|
|
|
- nextcloud-desktop
|
2020-02-17 20:28:38 -06:00
|
|
|
- obs-studio
|
2020-05-12 08:22:21 -05:00
|
|
|
- pidgin
|
|
|
|
- pidgin-libnotify
|
|
|
|
- pidgin-plugin-pack
|
2020-03-23 02:28:22 -05:00
|
|
|
- pulseeffects
|
2020-03-20 06:07:32 -05:00
|
|
|
- qbittorrent
|
2020-02-17 16:15:45 -06:00
|
|
|
- redshift
|
|
|
|
- rofi
|
2020-05-28 21:52:53 -05:00
|
|
|
- scrot
|
2020-02-17 16:15:45 -06:00
|
|
|
- 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
|
2020-03-27 08:12:02 -05:00
|
|
|
- xdotool
|
2020-05-12 08:05:54 -05:00
|
|
|
- zim
|
2020-02-17 16:15:45 -06:00
|
|
|
- "libgl1-mesa-dri:i386"
|
|
|
|
- "mesa-vulkan-drivers:i386"
|
2020-05-24 23:03:15 -05:00
|
|
|
# Games
|
|
|
|
- minetest
|
2020-05-02 05:55:40 -05:00
|
|
|
- name: Install Focal-exclusive desktop applications
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- piper
|
2020-05-24 23:05:45 -05:00
|
|
|
when: ansible_distribution_release == "focal"
|
2020-05-24 23:03:15 -05:00
|
|
|
- name: Install packages without recommends
|
2020-05-02 04:18:47 -05:00
|
|
|
apt:
|
2020-05-24 23:03:15 -05:00
|
|
|
install_recommends: no
|
2020-05-02 04:18:47 -05:00
|
|
|
name:
|
2020-05-24 23:03:15 -05:00
|
|
|
- php # Dev stuff
|
|
|
|
- php-xml
|
|
|
|
- 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-05-26 23:40:18 -05:00
|
|
|
- "https://d11yldzmag5yn.cloudfront.net/prod/5.0.413237.0524/zoom_amd64.deb"
|
2020-04-15 09:01:11 -05:00
|
|
|
- name: Install desktop applications through pip3
|
2020-02-17 16:15:45 -06:00
|
|
|
pip:
|
|
|
|
executable: "/usr/bin/pip3"
|
2020-04-15 08:59:19 -05:00
|
|
|
name:
|
2020-02-17 16:15:45 -06:00
|
|
|
- protontricks
|
|
|
|
- youtube-dl
|
2020-04-15 09:01:11 -05:00
|
|
|
- name: Install desktop applications through Snap
|
2020-02-17 16:15:45 -06:00
|
|
|
snap:
|
2020-04-15 08:59:19 -05:00
|
|
|
name:
|
2020-02-17 16:15:45 -06:00
|
|
|
- discord
|
2020-05-29 17:50:58 -05:00
|
|
|
- pixelorama
|
2020-02-17 16:15:45 -06:00
|
|
|
- riot-web
|
2020-03-16 05:45:41 -05:00
|
|
|
- scrcpy # Remote Android viewing
|
2020-04-22 23:01:59 -05:00
|
|
|
- name: Install Snap applications classically
|
|
|
|
snap:
|
|
|
|
classic: yes
|
|
|
|
name: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- slack
|
2020-05-24 23:03:15 -05:00
|
|
|
- name: Remove desktop applications through APT
|
|
|
|
apt:
|
|
|
|
state: absent
|
|
|
|
name:
|
|
|
|
- ktorrent
|
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-05-31 20:31:54 -05:00
|
|
|
- motd-news.service
|
|
|
|
- motd-news.timer
|
2020-05-31 20:29:38 -05:00
|
|
|
- name: Start services
|
|
|
|
systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
loop:
|
|
|
|
- syncthing@salt.service
|
2020-02-17 16:15:45 -06:00
|
|
|
become: yes
|