diff --git a/playbook.yml b/playbook.yml index ffebca4..71703bd 100644 --- a/playbook.yml +++ b/playbook.yml @@ -2,6 +2,7 @@ - name: ensure safe environment for exams hosts: localhost vars: + pruefungsanzeigename: "Abschlussprüfung 2024" pruefungsuser: "pruefling" pruefungsgruppe: "prueflinge" pruefungspasswort: "pruefung" diff --git a/roles/pruefungsuser/tasks/main.yml b/roles/pruefungsuser/tasks/main.yml index 0e1c75f..4309e6d 100644 --- a/roles/pruefungsuser/tasks/main.yml +++ b/roles/pruefungsuser/tasks/main.yml @@ -8,7 +8,7 @@ name: "{{ pruefungsuser }}" password: "{{ pruefungspasswort | password_hash('sha512') }}" shell: /bin/bash - comment: Prüfungsbenutzer + comment: "{{ pruefungsanzeigename }}" group: "{{ pruefungsgruppe }}" - name: create .config dir for created user @@ -29,7 +29,6 @@ state: absent remove: yes loop: - - "pruefung" - - "pruefling" + - pruefung + - pruefling - \ No newline at end of file