Skip to content
Snippets Groups Projects
Commit 55d79123 authored by Nitin Madhok's avatar Nitin Madhok
Browse files

Merge pull request #46 from hipikat/master

Add 'createhome' option for 'user.present' state
parents b77b198e 8e1d91b3
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ users: ...@@ -8,6 +8,7 @@ users:
fullname: B User fullname: B User
password: $6$w............. password: $6$w.............
home: /custom/buser home: /custom/buser
createhome: True
sudouser: True sudouser: True
sudo_rules: sudo_rules:
- ALL=(root) /usr/bin/find - ALL=(root) /usr/bin/find
......
...@@ -55,6 +55,9 @@ ...@@ -55,6 +55,9 @@
{% if 'fullname' in user %} {% if 'fullname' in user %}
- fullname: {{ user['fullname'] }} - fullname: {{ user['fullname'] }}
{% endif -%} {% endif -%}
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}
- groups: - groups:
- {{ user_group }} - {{ user_group }}
{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment