Compare commits

..
1 Commits
Author SHA1 Message Date
frebib 077f2ab15f Add users and ssh service
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-12 14:53:03 +01:00
+5 -5
View File
@@ -7,13 +7,13 @@
{%- for name, user in users.items() %}
{{ name|json }}:
user.present:
usergroup: true
createhome: true
groups: {{ user.get('groups', [])|json }}
- usergroup: true
- createhome: true
- groups: {{ user.get('groups', [])|json }}
{%- if user.password is defined %}
password: {{ user.password|json }}
- password: {{ user.password|json }}
{%- endif %}
{%- if user.shell is defined %}
shell: {{ user.shell }}
- shell: {{ user.shell }}
{%- endif %}
{%- endfor %}