Laptop Rollout Test

This commit is contained in:
Frank Schiebel 2023-09-13 17:46:58 +02:00
parent b2d51a9179
commit c6616ae2c0
9 changed files with 155 additions and 17 deletions

View file

@ -0,0 +1,3 @@
SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{idVendor}=="16c0",ATTRS{idProduct}=="0483",GROUP="dialout",MODE="0666"
SUBSYSTEMS=="usb",KERNEL=="ttyACM*",ATTRS{idVendor}=="2341",ATTRS{idProduct}=="0043",GROUP="dialout",MODE="0666"
SUBSYSTEMS=="usb",KERNEL=="ttyUSB*",ATTRS{idVendor}=="1a86",ATTRS{idProduct}=="7523",GROUP="dialout",MODE="0666"

View file

@ -0,0 +1,70 @@
{
"policies": {
"Proxy": {
"Mode": "system"
},
"OverrideFirstRunPage": "https://www.qg-moessingen.de",
"Homepage": {
"URL": "https://www.debian.org",
"Locked": false,
"StartPage": "previous-session"
},
"DisplayBookmarksToolbar": true,
"ManagedBookmarks": [
{
"toplevel_name": "QG Mössingen"
},
{
"url": "https://server.qgm.lan",
"name": "Passwort ändern"
},
{
"url": "https://wolke.qg-moessingen.de",
"name": "QG-Wolke"
},
{
"url": "https://moodle.qg-moessingen.de",
"name": "QG-Moodle"
},
{
"name": "Debian",
"children": [
{
"url": "https://www.debian.org",
"name": "Debian Homepage"
},
{
"url": "https://wiki.debian.org",
"name": "Debian Wiki"
},
{
"name": "Debian LAN/Live",
"children": [
{
"url": "https://salsa.debian.org/andi/debian-lan-ansible",
"name": "Debian LAN Ansible"
},
{
"url": "https://wiki.debian.org/DebianLive",
"name": "Debian Live"
}
]
}
]
}
],
"SearchEngines": {
"Add": [
{
"Name": "Startpage",
"URLTemplate": "https://www.startpage.com/sp/search?query={searchTerms}",
"Method": "GET",
"IconURL": "https://www.startpage.com/sp/cdn/favicons/favicon--default.ico",
"Alias": "sp",
"Description": "Startpage Search Engine"
}
],
"Default": "Startpage"
}
}
}

Binary file not shown.

View file

@ -0,0 +1,2 @@
[[ "${UID}" -lt 10000 ]] && return
kwriteconfig5 --file "$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group 'Containments' --group '1' --group 'Wallpaper' --group 'org.kde.image' --group 'General' --key 'Image' "/usr/local/share/qgm/qgm_background_wallpaper.jpg" || return

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

View file

@ -0,0 +1,77 @@
---
#########
# Login Benutzer
- name: Erzeuge login Benutzer laptop
user:
name: laptop
password: '$6$mIpgV5pylqiYinr5$n9GQvQvY2SqY9bIZr1UPxFWaCHhLDyfy7/QaFNUFscFK.Pd.DcOmne.WUelGvKbRLEYInEiMYzxMK.hIIVAVc1'
groups:
- sudo
- dialout
state: present
shell: /bin/bash
system: no
createhome: yes
home: /home/laptop
- name: Remove qgm-login.sh
ansible.builtin.file:
path: /etc/profile.d/qgm-login.sh
state: absent
#########
# Anpassungen an KDE
# - Doppelklick zum öffnen von Dateien
# - Style auf breeze fetstackern
# - Kein Benutzerwechsel
# - Kein Lockscreen
# - Keine neue Session
- name: Set mandatory KDE settings for laptops
ansible.builtin.copy:
dest: /etc/xdg/kdeglobals
content: |
[KDE][$i]
SingleClick=false
widgetStyle=breeze
[KDE Action Restrictions][$i]
action/switch_user=false
action/start_new_session=false
#########
# Screen Locking ermöglichen
- name: Enable screen locking
ansible.builtin.file:
path: /etc/xdg/kscreenlockerrc
state: absent
#########
# plasma-discover installieren
- name: Install plasma-discover
ansible.builtin.apt:
name: plasma-discover
state: latest
- name: Remove suspend config
file:
path: /etc/systemd/sleep.conf.d/nosuspend.conf
state: absent
- name: Allow suspend
blockinfile:
path: /etc/systemd/sleep.conf.d/nosuspend.conf
create: true
block: |
[Sleep]
AllowSuspend=yes
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
- name: Remove ansible User
ansible.builtin.user:
name: ansible
state: absent
remove: yes