Compare commits
2 Commits
5add74bba6
...
686c683a00
Author | SHA1 | Date |
---|---|---|
Jesko | 686c683a00 | |
Jesko | 07f81c7cd6 |
|
@ -2,6 +2,7 @@
|
|||
- name: ensure safe environment for exams
|
||||
hosts: localhost
|
||||
vars:
|
||||
pruefungsanzeigename: "Abschlussprüfung 2024"
|
||||
pruefungsuser: "pruefling"
|
||||
pruefungsgruppe: "prueflinge"
|
||||
pruefungspasswort: "pruefung"
|
||||
|
@ -14,6 +15,7 @@
|
|||
name: Europe/Berlin
|
||||
|
||||
roles:
|
||||
- role: aptupgrade # upgrade des Systems
|
||||
- role: pruefungsuser # anlegen des Users (config in vars)
|
||||
- role: libreoffice # libreoffice installieren und verlinken
|
||||
- role: ufw # firewall konfigurieren
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
- name: upgrade
|
||||
apt:
|
||||
upgrade: full
|
||||
update_cache: yes
|
||||
cache_valid_time: 43200
|
||||
autoremove: yes
|
||||
autoclean: yes
|
|
@ -3,12 +3,12 @@
|
|||
name: "{{ pruefungsgruppe }}"
|
||||
state: present
|
||||
|
||||
- name: create user student
|
||||
- name: create pruefungsuser
|
||||
ansible.builtin.user:
|
||||
name: "{{ pruefungsuser }}"
|
||||
password: "{{ pruefungspasswort | password_hash('sha512') }}"
|
||||
shell: /bin/bash
|
||||
comment: Prüfungsbenutzer
|
||||
comment: "{{ pruefungsanzeigename }}"
|
||||
group: "{{ pruefungsgruppe }}"
|
||||
|
||||
- name: create .config dir for created user
|
||||
|
@ -21,3 +21,14 @@
|
|||
loop:
|
||||
- "/home/{{ pruefungsuser }}/.config/"
|
||||
- "/home/{{ pruefungsuser }}/Schreibtisch/"
|
||||
|
||||
|
||||
- name: Remove user
|
||||
user:
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
remove: yes
|
||||
loop:
|
||||
- pruefung
|
||||
- pruefling
|
||||
|
||||
|
|
Loading…
Reference in New Issue