user bereinigen
This commit is contained in:
parent
5add74bba6
commit
07f81c7cd6
|
@ -14,6 +14,7 @@
|
||||||
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
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
- name: upgrade
|
||||||
|
apt:
|
||||||
|
upgrade: full
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 43200
|
||||||
|
autoremove: yes
|
||||||
|
autoclean: yes
|
|
@ -3,7 +3,7 @@
|
||||||
name: "{{ pruefungsgruppe }}"
|
name: "{{ pruefungsgruppe }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: create user student
|
- name: create pruefungsuser
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ pruefungsuser }}"
|
name: "{{ pruefungsuser }}"
|
||||||
password: "{{ pruefungspasswort | password_hash('sha512') }}"
|
password: "{{ pruefungspasswort | password_hash('sha512') }}"
|
||||||
|
@ -21,3 +21,15 @@
|
||||||
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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue