Laptop Rollout Test
This commit is contained in:
parent
b2d51a9179
commit
c6616ae2c0
9 changed files with 155 additions and 17 deletions
|
@ -48,6 +48,7 @@
|
||||||
#- lmn_sssd
|
#- lmn_sssd
|
||||||
#- lmn_mount
|
#- lmn_mount
|
||||||
- lmn_kde
|
- lmn_kde
|
||||||
#- lmn_qgm
|
- lmn_qgm
|
||||||
|
- lmn_qglaptop
|
||||||
#- lmn_printer
|
#- lmn_printer
|
||||||
#- kerberize
|
#- kerberize
|
||||||
|
|
|
@ -4,22 +4,6 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
remote_user: ansible
|
remote_user: ansible
|
||||||
become: yes
|
become: yes
|
||||||
pre_tasks:
|
|
||||||
- pause:
|
|
||||||
prompt: "Enter global-admin active directory password, leave empty to skip domain join"
|
|
||||||
minutes: 5
|
|
||||||
echo: false
|
|
||||||
register: adpw
|
|
||||||
no_log: true
|
|
||||||
when: "ansible_cmdline.adpw is not defined"
|
|
||||||
- name: preseed apparmor
|
|
||||||
debconf:
|
|
||||||
name: apparmor
|
|
||||||
question: apparmor/homedirs
|
|
||||||
value: >-
|
|
||||||
/srv/samba/schools/default-school/teachers/
|
|
||||||
/srv/samba/schools/default-school/students/*/
|
|
||||||
vtype: string
|
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
domain: "{{ ansible_domain }}"
|
domain: "{{ ansible_domain }}"
|
||||||
|
@ -65,5 +49,6 @@
|
||||||
#- lmn_mount
|
#- lmn_mount
|
||||||
- lmn_kde
|
- lmn_kde
|
||||||
- lmn_qgm
|
- lmn_qgm
|
||||||
|
- lmn_qglaptop
|
||||||
#- lmn_printer
|
#- lmn_printer
|
||||||
#- kerberize
|
#- kerberize
|
||||||
|
|
3
roles/lmn_qglaptop/files/52-arduino.rules
Normal file
3
roles/lmn_qglaptop/files/52-arduino.rules
Normal 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"
|
70
roles/lmn_qglaptop/files/firefox_policies.json
Normal file
70
roles/lmn_qglaptop/files/firefox_policies.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
roles/lmn_qglaptop/files/qgm-breeze-sddm.tgz
Normal file
BIN
roles/lmn_qglaptop/files/qgm-breeze-sddm.tgz
Normal file
Binary file not shown.
2
roles/lmn_qglaptop/files/qgm-login.sh
Normal file
2
roles/lmn_qglaptop/files/qgm-login.sh
Normal 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
|
BIN
roles/lmn_qglaptop/files/qgm_background.jpg
Normal file
BIN
roles/lmn_qglaptop/files/qgm_background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 761 KiB |
BIN
roles/lmn_qglaptop/files/qgm_background_wallpaper.jpg
Normal file
BIN
roles/lmn_qglaptop/files/qgm_background_wallpaper.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 498 KiB |
77
roles/lmn_qglaptop/tasks/main.yml
Normal file
77
roles/lmn_qglaptop/tasks/main.yml
Normal 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue