2025-06-26-13-33-49: Cronjob
This commit is contained in:
commit
29049c8da1
127 changed files with 7089 additions and 0 deletions
40
roles/lmn_kde/defaults/main.yml
Normal file
40
roles/lmn_kde/defaults/main.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
kde_desktop_pkg:
|
||||
- akonadi-backend-sqlite
|
||||
- arduino
|
||||
- bluefish
|
||||
- calligra
|
||||
- codeblocks
|
||||
- dia
|
||||
- filius
|
||||
- flameshot
|
||||
- freecad
|
||||
- fritzing
|
||||
- ghex
|
||||
- gimp
|
||||
- inkscape
|
||||
- kde-full
|
||||
- keepassxc
|
||||
- kicad
|
||||
- kicad-doc-de
|
||||
- librecad
|
||||
- openboard
|
||||
- qtcreator
|
||||
- spyder
|
||||
- sqlite3
|
||||
- sqlitebrowser
|
||||
- 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
|
||||
- xournalpp
|
||||
|
||||
kde_desktop_pkg_bpo: [ ]
|
||||
32
roles/lmn_kde/files/lmn-fix-dolphin.sh
Executable file
32
roles/lmn_kde/files/lmn-fix-dolphin.sh
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
# Dolphin keeps old paths after modifications.
|
||||
# Run with '--do-it' to really make the change.
|
||||
#
|
||||
set -eu
|
||||
|
||||
do="${1:-}"
|
||||
|
||||
bmk=".local/share/user-places.xbel"
|
||||
rt="/srv/samba/schools/default-school/students"
|
||||
|
||||
extract() {
|
||||
local grp="$1"
|
||||
grp="${grp##*${rt}/}"
|
||||
grp="${grp%%/*}"
|
||||
echo $grp
|
||||
}
|
||||
|
||||
for f in $(find $rt/*/*/$bmk) ; do
|
||||
cor="$(extract $f)"
|
||||
for l in "$(grep "$rt" "$f")" ; do
|
||||
fnd="$(extract "$l")"
|
||||
if [[ "$cor" != "$fnd" ]] ; then
|
||||
echo "Check ${f##*${rt}/}: '$cor' != '$fnd'."
|
||||
if [[ "$do" = "--do-it" ]] ; then
|
||||
sed -i.lmn-fix-path "s|$rt/$fnd|$rt/$cor|g" "$f"
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
68
roles/lmn_kde/tasks/main.yml
Normal file
68
roles/lmn_kde/tasks/main.yml
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
- name: Install desktop and educational packages
|
||||
ansible.builtin.apt:
|
||||
name: "{{ kde_desktop_pkg }}"
|
||||
|
||||
- name: Add backports {{ ansible_distribution_release }}
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main non-free-firmware
|
||||
state: present
|
||||
update_cache: true
|
||||
when: kde_desktop_pkg_bpo | length > 0
|
||||
|
||||
- name: Install extra packages from backports
|
||||
ansible.builtin.apt:
|
||||
name: "{{ kde_desktop_pkg_bpo }}"
|
||||
autoremove: true
|
||||
default_release: "{{ ansible_distribution_release }}-backports"
|
||||
when: kde_desktop_pkg_bpo | length > 0
|
||||
|
||||
|
||||
- name: Create akonadi config dir
|
||||
ansible.builtin.file:
|
||||
path: /etc/xdg/akonadi/
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Use sqlite in akonadi
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/xdg/akonadi/akonadiserverrc
|
||||
create: true
|
||||
mode: '0644'
|
||||
block: |
|
||||
[%General]
|
||||
Driver=QSQLITE3
|
||||
|
||||
## Akonadi complains if not set:
|
||||
- name: Add home dirs to apparmor
|
||||
ansible.builtin.lineinfile:
|
||||
dest: /etc/apparmor.d/tunables/home.d/ubuntu
|
||||
line: >-
|
||||
@{HOMEDIRS}+=/srv/samba/schools/default-school/teachers/
|
||||
/srv/samba/schools/default-school/students/*/
|
||||
/srv/samba/schools/default-school/examusers/
|
||||
|
||||
|
||||
- name: Tune SDDM login
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/sddm.conf
|
||||
create: true
|
||||
mode: '0644'
|
||||
block: |
|
||||
[Users]
|
||||
MaximumUid=999
|
||||
RememberLastUser=false
|
||||
RememberLastSession=false
|
||||
|
||||
- name: Deploy dolphin script
|
||||
ansible.builtin.copy:
|
||||
src: lmn-fix-dolphin.sh
|
||||
dest: /usr/local/bin/
|
||||
mode: '0755'
|
||||
|
||||
- name: Default KDE filepicker
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/environment.d/90lmn-filepicker.conf
|
||||
create: true
|
||||
mode: '0644'
|
||||
line: GTK_USE_PORTAL=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue