Compare commits
No commits in common. "686c683a00d426dffaba317cc2487dba54e8e57e" and "5add74bba648c628e1045be794d1d86c651d329b" have entirely different histories.
686c683a00
...
5add74bba6
|
@ -2,7 +2,6 @@
|
|||
- name: ensure safe environment for exams
|
||||
hosts: localhost
|
||||
vars:
|
||||
pruefungsanzeigename: "Abschlussprüfung 2024"
|
||||
pruefungsuser: "pruefling"
|
||||
pruefungsgruppe: "prueflinge"
|
||||
pruefungspasswort: "pruefung"
|
||||
|
@ -15,7 +14,6 @@
|
|||
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
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
- 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 pruefungsuser
|
||||
- name: create user student
|
||||
ansible.builtin.user:
|
||||
name: "{{ pruefungsuser }}"
|
||||
password: "{{ pruefungspasswort | password_hash('sha512') }}"
|
||||
shell: /bin/bash
|
||||
comment: "{{ pruefungsanzeigename }}"
|
||||
comment: Prüfungsbenutzer
|
||||
group: "{{ pruefungsgruppe }}"
|
||||
|
||||
- name: create .config dir for created user
|
||||
|
@ -21,14 +21,3 @@
|
|||
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