Add flexible home and group controls for users

This commit is contained in:
Kris Lamoureux 2025-01-19 16:28:54 -05:00
parent 77c9b12186
commit 56c3721a5e
Signed by: kris
GPG Key ID: 105B748C1362EB96

View File

@ -80,8 +80,10 @@
state: present
uid: "{{ item.value.uid }}"
group: "{{ item.value.gid }}"
groups: "{{ item.value.groups | default([]) }}"
shell: "{{ item.value.shell | default('/bin/bash') }}"
create_home: "{{ item.value.home | default(false) }}"
home: "{{ item.value.homedir | default('/home/' + item.key) }}"
system: "{{ item.value.system | default(false) }}"
loop: "{{ users | dict2items }}"
loop_control: