classroom/roles/linroom/tasks/fri_base.yml

107 lines
2.4 KiB
YAML
Raw Normal View History

- name: Add Firefox not-a-snap repository
block:
- name: Pin Firefox PPA package priority
template:
src: mozilla-firefox-apt-preferences
dest: /etc/apt/preferences.d/mozilla-firefox
- name: Enable Firefox unattended upgrades
template:
src: mozilla-firefox-unattended-upgrades
dest: /etc/apt/apt.conf.d/51unattended-upgrades-firefox
- name: Add Firefox PPA
apt_repository:
repo: ppa:mozillateam/ppa
state: present
update_cache: True
validate_certs: False
- name: Install generally useful packages
apt:
name:
- i3
- sway
- vlc
- mpv
- ffmpeg
- emacs
- kwrite
- kate
- krita
- blender
2022-09-28 13:58:05 +00:00
- inkscape
- pcmanfm-qt
- qutebrowser
2022-09-28 13:58:05 +00:00
- chromium-browser
- firefox
- qemu
- qemu-kvm
2022-09-28 13:58:05 +00:00
- qemu-utils
- virt-manager
- wine-development
- dosbox
2022-09-28 13:58:05 +00:00
- webext-ublock-origin-chromium
- webext-ublock-origin-firefox
- nethack-console
- zsh
- tmux
- screen
- curl
2022-09-28 13:58:05 +00:00
- git-gui
- git-cola
- kdiff3
- thonny
- ttf-mscorefonts-installer
- libhivex-bin
- overlayroot
state: latest
2022-09-28 13:58:05 +00:00
update_cache: yes
- name: Remove broken or unnecessary packages
apt:
name:
- xfce4-screensaver
- xscreensaver
state: absent
- name: Set up additional groups for students
vars:
additional_groups:
- wireshark
- kvm
- dialout
- libvirt
- vboxusers
- ubridge
- docker
2022-09-28 13:58:05 +00:00
block:
- name: create user@.service.d
file:
path: /etc/systemd/system/user@.service.d
state: directory
- name: override groups in systemd
2022-09-28 13:58:05 +00:00
template:
src: systemd_group_override.conf
dest: /etc/systemd/system/user@.service.d/override.conf
- name: create /etc/security/group.conf
template:
src: security_group.conf
dest: /etc/security/group.conf
- name: create pam config for libpam_group
template:
src: pamconfig_groups
dest: /usr/share/pam-configs/groups
- name: enable libpam_group
shell: pam-auth-update --enable groups
- name: Set default keyboard layout to SI
2022-09-28 13:58:05 +00:00
template:
src: default_keyboard
dest: /etc/default/keyboard
- name: Set time to local RTC
shell: "timedatectl set-local-rtc 1 --adjust-system-clock"
- name: Enable Wake-on-LAN
import_tasks: wake-on-lan.yml
2022-09-28 13:58:05 +00:00