Control execution of localuser by variable instead of group-membership

This commit is contained in:
Raphael Dannecker 2025-03-25 09:14:47 +01:00
parent a98617f9ca
commit 2602189911
8 changed files with 635 additions and 644 deletions

View file

@ -0,0 +1,4 @@
---
localuser: false
localuser_password: "Muster!"
localuser_secretsalt: "4ANAxPycC3q"

View file

@ -15,7 +15,7 @@
uid: 1001
password_expire_min: 99999
createhome: false
password: "{{ localuser_pwd }}"
password: "{{ localuser_password | password_hash('sha512',localuser_secretsalt) }}"
- name: Prepare generator for local guest user
ansible.builtin.copy: