Add defaults
This commit is contained in:
parent
ec6918d583
commit
ae925a9400
|
@ -3,8 +3,8 @@
|
||||||
user:
|
user:
|
||||||
name: '{{ item.name }}'
|
name: '{{ item.name }}'
|
||||||
shell: '{{ item.shell|default("/bin/bash") }}'
|
shell: '{{ item.shell|default("/bin/bash") }}'
|
||||||
password_lock: '{% if item.lock %}yes{% else %}no{% endif %}'
|
password_lock: '{% if item.lock|default(false) %}yes{% else %}no{% endif %}'
|
||||||
system: '{% if item.system %}yes{% else %}no{% endif %}'
|
system: '{% if item.system|default(false) %}yes{% else %}no{% endif %}'
|
||||||
comment: '{{ item.comm|default("No comment") }}'
|
comment: '{{ item.comm|default("No comment") }}'
|
||||||
tags:
|
tags:
|
||||||
- users
|
- users
|
||||||
|
|
Reference in New Issue