add support for shell and passwords
This commit is contained in:
parent
c6929ae9f6
commit
4ce318dcf1
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,8 @@
|
|||
system: true
|
||||
state: present
|
||||
uid: "{{ omit }}"
|
||||
password: "*"
|
||||
shell: "/usr/sbin/nologin"
|
||||
|
||||
- set_fact:
|
||||
user: "{{ defaultuser|combine(item.value|d({}), {'name': item.key} ) }}"
|
||||
|
|
@ -22,3 +24,5 @@
|
|||
system: "{{ user.system }}"
|
||||
state: "{{ user.state }}"
|
||||
uid: "{{ user.uid|d(omit) }}"
|
||||
password: "{{ user.password }}"
|
||||
shell: "{{ user.shell }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue