add support for shell and passwords

This commit is contained in:
nd 2019-05-17 00:43:44 +02:00
parent c6929ae9f6
commit 4ce318dcf1
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -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 }}"