Separate package installation into its own task file, install mopidy stuff

This commit is contained in:
Salt 2020-06-15 08:41:26 -05:00
parent e2d73a8427
commit f9a8c86b9c
2 changed files with 186 additions and 171 deletions

View File

@ -36,177 +36,8 @@
- { src: "g810-led.rules", dest: "/etc/udev/rules.d/50-g810-led.rules", mode: "0644" } - { src: "g810-led.rules", dest: "/etc/udev/rules.d/50-g810-led.rules", mode: "0644" }
- { src: "switch-rcm.rules", dest: "/etc/udev/rules.d/50-switch-rcm.rules", mode: "0644" } - { src: "switch-rcm.rules", dest: "/etc/udev/rules.d/50-switch-rcm.rules", mode: "0644" }
notify: reload udev notify: reload udev
- name: Enable i386 architecture - name: Configure system packages
command: /usr/bin/dpkg --add-architecture i386 include_tasks: packages.yml
- name: Add repo keys
apt_key:
keyserver: 'keyserver.ubuntu.com'
id: "{{ item }}"
loop:
- "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop
- name: Add repos
apt_repository:
repo: "{{ item }}"
loop:
- "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" # Monodevelop; see above for key
- "ppa:drewwalton19216801/dolphin-master-cosmic" # Because Dolphin doesn't update their shit
- "ppa:kgilmer/speed-ricer" # Rice rice rice
- "ppa:lutris-team/lutris"
- name: Update and upgrade apt packages
apt:
upgrade: "yes"
update_cache: yes
# One day
cache_valid_time: 86400
- name: Remove packages
apt:
name:
- mpd
state: absent
- name: Install packages
apt:
name:
# Terminal packages
- adb
- build-essential
- earlyoom
- fastboot
- ffmpeg
- git
- imagemagick
- lua-check # I am good ComputerCraft guy
- neofetch
- network-manager-openconnect
- network-manager-openvpn
- npm
- openjdk-8-jre # For Minecraft
- pwgen
- python3-appdirs
- python3-eyed3
- python3-pip
- python3-pyqt5
- python3-usb # fuselee-gelee
- python3-venv
- qt5-default # For Multimc, should be installed on Kubuntu
- tree
- units
- 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
- fonts-inconsolata
- fonts-noto
- fonts-roboto
# DE
- compton
- dunst
- hsetroot
- i3-gaps-wm
- i3lock
- kubuntu-desktop
- papirus-icon-theme
- pavucontrol-qt
- polybar
- qt5ct
- xbacklight
# Desktop applications
- cantata
- chromium-browser
- chromium-chromedriver # Because Selenium
- clonezilla
- dolphin-emu-master
- dolphin-plugins
- filelight
- filezilla
- firefox
- g810-led
- gimp
- inkscape
- joy2key
- joystick
- kcolorchooser
- kdenlive
- keepassxc
- krita
- libnotify-bin
- lutris
- mesa-vulkan-drivers
- monodevelop
- mpc
- mopidy
- mpv
- mupen64plus-qt
- nextcloud-desktop
- obs-studio
- pidgin
- pidgin-libnotify
- pidgin-plugin-pack
- pulseeffects
- qbittorrent
- redshift
- rofi
- scrot
- steam-installer
- syncthing-gtk
- telegram-desktop
- torbrowser-launcher
- virt-manager
- vulkan-tools
- vulkan-utils
- winetricks
- xdotool
- zim
- "libgl1-mesa-dri:i386"
- "mesa-vulkan-drivers:i386"
# Games
- minetest
- name: Install Focal-exclusive desktop applications
apt:
name:
- piper
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:
- "https://github.com/MultiMC/MultiMC5/releases/download/0.6.8/multimc_1.4-1.deb"
- "https://d11yldzmag5yn.cloudfront.net/prod/5.0.413237.0524/zoom_amd64.deb"
- name: Install desktop applications through pip3
pip:
executable: "/usr/bin/pip3"
name:
- protontricks
- youtube-dl
- name: Install desktop applications through Snap
snap:
name:
- discord
- pixelorama
- riot-web
- scrcpy # Remote Android viewing
- spotify # Forgive me father
- name: Install Snap applications classically
snap:
classic: yes
name: "{{ item }}"
loop:
- slack
- name: Remove desktop applications through APT
apt:
state: absent
name:
- ktorrent
- name: Stop services - name: Stop services
systemd: systemd:
name: "{{ item }}" name: "{{ item }}"

View File

@ -0,0 +1,184 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Configure system packages
block:
- name: Enable i386 architecture
command: /usr/bin/dpkg --add-architecture i386
- name: Add repo keys
apt_key:
keyserver: 'keyserver.ubuntu.com'
id: "{{ item }}"
loop:
- "3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF" # Monodevelop
- name: Add repo keys by URL
apt_key:
url: "{{ item }}"
loop:
- "https://apt.mopidy.com/mopidy.gpg" # Mopidy APT repo
- name: Add repos
apt_repository:
repo: "{{ item }}"
loop:
# Mopidy
- "deb https://apt.mopidy.com/ buster main contrib non-free"
- "deb-src https://apt.mopidy.com/ buster main contrib non-free"
# Monodevelop
- "deb https://download.mono-project.com/repo/ubuntu vs-bionic main"
# PPAs
- "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
- build-essential
- earlyoom
- fastboot
- ffmpeg
- git
- imagemagick
- lua-check # I am good ComputerCraft guy
- neofetch
- network-manager-openconnect
- network-manager-openvpn
- npm
- openjdk-8-jre # For Minecraft
- pwgen
- python3-appdirs
- python3-eyed3
- python3-pip
- python3-pyqt5
- python3-usb # fuselee-gelee
- python3-venv
- qt5-default # For Multimc, should be installed on Kubuntu
- tree
- units
- 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
- fonts-inconsolata
- fonts-noto
- fonts-roboto
# DE
- compton
- dunst
- hsetroot
- i3-gaps-wm
- i3lock
- kubuntu-desktop
- papirus-icon-theme
- pavucontrol-qt
- polybar
- qt5ct
- xbacklight
# Desktop applications
- cantata
- chromium-browser
- chromium-chromedriver # Because Selenium
- clonezilla
- dolphin-emu-master
- dolphin-plugins
- filelight
- filezilla
- firefox
- g810-led
- gimp
- inkscape
- joy2key
- joystick
- kcolorchooser
- kdenlive
- keepassxc
- krita
- libnotify-bin
- lutris
- mesa-vulkan-drivers
- monodevelop
- mpc
- mopidy
- mopidy-spotify
- mpv
- mupen64plus-qt
- nextcloud-desktop
- obs-studio
- pidgin
- pidgin-libnotify
- pidgin-plugin-pack
- pulseeffects
- qbittorrent
- redshift
- rofi
- scrot
- steam-installer
- syncthing-gtk
- telegram-desktop
- torbrowser-launcher
- virt-manager
- vulkan-tools
- vulkan-utils
- winetricks
- xdotool
- zim
- "libgl1-mesa-dri:i386"
- "mesa-vulkan-drivers:i386"
# Games
- minetest
- name: Install Focal-exclusive desktop applications
apt:
name:
- piper
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:
- "https://github.com/MultiMC/MultiMC5/releases/download/0.6.8/multimc_1.4-1.deb"
- "https://d11yldzmag5yn.cloudfront.net/prod/5.0.413237.0524/zoom_amd64.deb"
- name: Install desktop applications through pip3
pip:
executable: "/usr/bin/pip3"
name:
- protontricks
- youtube-dl
- name: Install desktop applications through Snap
snap:
name:
- discord
- pixelorama
- riot-web
- scrcpy # Remote Android viewing
- spotify # Forgive me father
- name: Install Snap applications classically
snap:
classic: yes
name: "{{ item }}"
loop:
- slack
- name: Remove desktop applications through APT
apt:
name:
- ktorrent
- mpd
state: absent
become: yes