{% endif %} | {% endif %} | ||||
user.present: | user.present: | ||||
- name: {{ name }} | - name: {{ name }} | ||||
{% if user.get('createhome', True) -%} | |||||
- home: {{ home }} | - home: {{ home }} | ||||
{% endif -%} | |||||
- shell: {{ user.get('shell', current.get('shell', users.get('shell', '/bin/bash'))) }} | - shell: {{ user.get('shell', current.get('shell', users.get('shell', '/bin/bash'))) }} | ||||
{% if 'uid' in user -%} | {% if 'uid' in user -%} | ||||
- uid: {{ user['uid'] }} | - uid: {{ user['uid'] }} |