Control execution of localuser by variable instead of group-membership
This commit is contained in:
parent
a98617f9ca
commit
2602189911
8 changed files with 635 additions and 644 deletions
4
roles/lmn_localuser/defaults/main.yml
Normal file
4
roles/lmn_localuser/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
localuser: false
|
||||
localuser_password: "Muster!"
|
||||
localuser_secretsalt: "4ANAxPycC3q"
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue