# WARNING: If 'empty_password' is set to True, the 'password' statement | # WARNING: If 'empty_password' is set to True, the 'password' statement | ||||
# will be ignored by enabling password-less login for the user. | # will be ignored by enabling password-less login for the user. | ||||
empty_password: False | empty_password: False | ||||
hash_password: False | |||||
system: False | system: False | ||||
home: /custom/buser | home: /custom/buser | ||||
homedir_owner: buser | homedir_owner: buser |
{% if 'enforce_password' in user -%} | {% if 'enforce_password' in user -%} | ||||
- enforce_password: {{ user['enforce_password'] }} | - enforce_password: {{ user['enforce_password'] }} | ||||
{% endif -%} | {% endif -%} | ||||
{% if 'hash_password' in user -%} | |||||
- hash_password: {{ user['hash_password'] }} | |||||
{% endif -%} | |||||
{% if user.get('system', False) -%} | {% if user.get('system', False) -%} | ||||
- system: True | - system: True | ||||
{% endif -%} | {% endif -%} |