Merge pull request #46 from hipikat/master
Add 'createhome' option for 'user.present' state
This commit is contained in:
commit
55d7912363
@ -8,6 +8,7 @@ users:
|
||||
fullname: B User
|
||||
password: $6$w.............
|
||||
home: /custom/buser
|
||||
createhome: True
|
||||
sudouser: True
|
||||
sudo_rules:
|
||||
- ALL=(root) /usr/bin/find
|
||||
|
@ -55,6 +55,9 @@
|
||||
{% if 'fullname' in user %}
|
||||
- fullname: {{ user['fullname'] }}
|
||||
{% endif -%}
|
||||
{% if not user.get('createhome', True) %}
|
||||
- createhome: False
|
||||
{% endif %}
|
||||
- groups:
|
||||
- {{ user_group }}
|
||||
{% for group in user.get('groups', []) -%}
|
||||
|
Loading…
Reference in New Issue
Block a user