bookworm/roles/lmn_kde/tasks/main.yml

145 lines
3.2 KiB
YAML
Raw Normal View History

2023-09-05 15:49:28 +02:00
---
2023-09-05 17:02:39 +02:00
- name: Install desktop and educational packages
2023-09-05 15:49:28 +02:00
apt:
name:
- akonadi-backend-sqlite
2023-09-05 17:02:39 +02:00
- arduino
2023-09-05 15:49:28 +02:00
- bluefish
2023-09-05 17:02:39 +02:00
- codeblocks
- dia
- flameshot
2023-09-05 15:49:28 +02:00
- ghex
2023-09-05 17:02:39 +02:00
- gimp
- inkscape
- kde-full
- keepassxc
- librecad
2023-09-05 15:49:28 +02:00
- mu-editor
2023-09-05 17:02:39 +02:00
- qtcreator
- spyder
2023-09-05 15:49:28 +02:00
- sqlite3
- sqlitebrowser
2023-09-05 17:02:39 +02:00
- task-german-desktop
- task-german-kde-desktop
- task-kde-desktop
- thonny
- thunderbird-l10n-de
- vlc
- vym
- webext-privacy-badger
- webext-ublock-origin-chromium
- webext-ublock-origin-firefox
- xdg-desktop-portal-kde
- xdg-desktop-portal-wlr # share screen in browser
2023-09-05 15:49:28 +02:00
autoremove: true
state: latest
- name: Add {{ ansible_distribution_release }}-backports
apt_repository:
repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main non-free-firmware
state: present
update_cache: true
- name: Install extra packages from backports
apt:
name:
- libreoffice
- libreoffice-l10n-de
- kicad
- kicad-doc-de
state: latest # noqa package-latest
autoremove: true
default_release: "{{ ansible_distribution_release }}-backports"
- name: Create akonadi config dir
ansible.builtin.file:
path: /etc/xdg/akonadi/
state: directory
mode: '0755'
- name: Use sqlite in akonadi
blockinfile:
path: /etc/xdg/akonadi/akonadiserverrc
create: true
block: |
[%General]
Driver=QSQLITE3
- name: Add home dirs to apparmor
lineinfile:
dest: /etc/apparmor.d/tunables/home.d/ubuntu
line: >-
@{HOMEDIRS}+=/srv/samba/schools/default-school/teachers/
/srv/samba/schools/default-school/students/*/
- name: tune SDDM login
blockinfile:
path: /etc/sddm.conf
create: true
block: |
[Users]
MaximumUid=999
RememberLastUser=false
RememberLastSession=false
- name: Create directory to avoid suspend
ansible.builtin.file:
path: /etc/systemd/sleep.conf.d/
state: directory
mode: '0755'
- name: Avoid suspending
blockinfile:
path: /etc/systemd/sleep.conf.d/nosuspend.conf
create: true
block: |
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
################# general settings ##################
2023-09-05 17:02:39 +02:00
- name: Enable boot splash screen
replace:
dest: "/etc/default/grub"
regexp: '"quiet"$'
replace: '"quiet splash"'
notify: Run update-grub
2024-02-03 16:42:19 +01:00
#- name: Protect grub menu entries
# blockinfile:
# path: /etc/grub.d/40_custom
# block: |
# set superusers='root'
# password_pbkdf2 root {{ grub_pwd }}
# notify: Run update-grub
2023-09-05 15:49:28 +02:00
- name: Allow booting default entry
lineinfile:
dest: /etc/grub.d/10_linux
line: CLASS="${CLASS} --unrestricted"
insertafter: '^CLASS=.*'
firstmatch: true
notify: Run update-grub
- name: Grub timeout
lineinfile:
dest: /etc/default/grub
regexp: '^(GRUB_TIMEOUT=).*'
line: '\g<1>3'
backrefs: yes
notify: Run update-grub
- name: Keyboard compose key
lineinfile:
dest: /etc/default/keyboard
regexp: '^(XKBOPTIONS=).*'
line: '\1"compose:caps"'
backrefs: yes