Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d215e2c9e6
|
@@ -7,13 +7,13 @@
|
|||||||
{%- for name, user in users.items() %}
|
{%- for name, user in users.items() %}
|
||||||
{{ name|json }}:
|
{{ name|json }}:
|
||||||
user.present:
|
user.present:
|
||||||
- usergroup: true
|
usergroup: true
|
||||||
- createhome: true
|
createhome: true
|
||||||
- groups: {{ user.get('groups', [])|json }}
|
groups: {{ user.get('groups', [])|json }}
|
||||||
{%- if user.password is defined %}
|
{%- if user.password is defined %}
|
||||||
- password: {{ user.password|json }}
|
password: {{ user.password|json }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if user.shell is defined %}
|
{%- if user.shell is defined %}
|
||||||
- shell: {{ user.shell }}
|
shell: {{ user.shell }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user