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,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