Compare commits

..

No commits in common. "686c683a00d426dffaba317cc2487dba54e8e57e" and "5add74bba648c628e1045be794d1d86c651d329b" have entirely different histories.

3 changed files with 3 additions and 23 deletions

View File

@ -2,7 +2,6 @@
- name: ensure safe environment for exams - name: ensure safe environment for exams
hosts: localhost hosts: localhost
vars: vars:
pruefungsanzeigename: "Abschlussprüfung 2024"
pruefungsuser: "pruefling" pruefungsuser: "pruefling"
pruefungsgruppe: "prueflinge" pruefungsgruppe: "prueflinge"
pruefungspasswort: "pruefung" pruefungspasswort: "pruefung"
@ -15,7 +14,6 @@
name: Europe/Berlin name: Europe/Berlin
roles: roles:
- role: aptupgrade # upgrade des Systems
- role: pruefungsuser # anlegen des Users (config in vars) - role: pruefungsuser # anlegen des Users (config in vars)
- role: libreoffice # libreoffice installieren und verlinken - role: libreoffice # libreoffice installieren und verlinken
- role: ufw # firewall konfigurieren - role: ufw # firewall konfigurieren

View File

@ -1,7 +0,0 @@
- name: upgrade
apt:
upgrade: full
update_cache: yes
cache_valid_time: 43200
autoremove: yes
autoclean: yes

View File

@ -3,12 +3,12 @@
name: "{{ pruefungsgruppe }}" name: "{{ pruefungsgruppe }}"
state: present state: present
- name: create pruefungsuser - name: create user student
ansible.builtin.user: ansible.builtin.user:
name: "{{ pruefungsuser }}" name: "{{ pruefungsuser }}"
password: "{{ pruefungspasswort | password_hash('sha512') }}" password: "{{ pruefungspasswort | password_hash('sha512') }}"
shell: /bin/bash shell: /bin/bash
comment: "{{ pruefungsanzeigename }}" comment: Prüfungsbenutzer
group: "{{ pruefungsgruppe }}" group: "{{ pruefungsgruppe }}"
- name: create .config dir for created user - name: create .config dir for created user
@ -21,14 +21,3 @@
loop: loop:
- "/home/{{ pruefungsuser }}/.config/" - "/home/{{ pruefungsuser }}/.config/"
- "/home/{{ pruefungsuser }}/Schreibtisch/" - "/home/{{ pruefungsuser }}/Schreibtisch/"
- name: Remove user
user:
name: "{{ item }}"
state: absent
remove: yes
loop:
- pruefung
- pruefling