Add flexible home and group controls for users
This commit is contained in:
parent
77c9b12186
commit
56c3721a5e
@ -80,8 +80,10 @@
|
|||||||
state: present
|
state: present
|
||||||
uid: "{{ item.value.uid }}"
|
uid: "{{ item.value.uid }}"
|
||||||
group: "{{ item.value.gid }}"
|
group: "{{ item.value.gid }}"
|
||||||
|
groups: "{{ item.value.groups | default([]) }}"
|
||||||
shell: "{{ item.value.shell | default('/bin/bash') }}"
|
shell: "{{ item.value.shell | default('/bin/bash') }}"
|
||||||
create_home: "{{ item.value.home | default(false) }}"
|
create_home: "{{ item.value.home | default(false) }}"
|
||||||
|
home: "{{ item.value.homedir | default('/home/' + item.key) }}"
|
||||||
system: "{{ item.value.system | default(false) }}"
|
system: "{{ item.value.system | default(false) }}"
|
||||||
loop: "{{ users | dict2items }}"
|
loop: "{{ users | dict2items }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user