Add defaults

This commit is contained in:
Alex 2020-08-09 11:56:15 +02:00
parent ec6918d583
commit ae925a9400
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
user:
name: '{{ item.name }}'
shell: '{{ item.shell|default("/bin/bash") }}'
password_lock: '{% if item.lock %}yes{% else %}no{% endif %}'
system: '{% if item.system %}yes{% else %}no{% endif %}'
password_lock: '{% if item.lock|default(false) %}yes{% else %}no{% endif %}'
system: '{% if item.system|default(false) %}yes{% else %}no{% endif %}'
comment: '{{ item.comm|default("No comment") }}'
tags:
- users