If createhome is set to false, don't touch the home directory or its
permissions.
This commit is contained in:
parent
e35045801c
commit
518b06281a
|
@ -22,6 +22,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{{ name }}_user:
|
{{ name }}_user:
|
||||||
|
{% if user.get('createhome', True) != False %}
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ home }}
|
- name: {{ home }}
|
||||||
- user: {{ name }}
|
- user: {{ name }}
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
- require:
|
- require:
|
||||||
- user: {{ name }}
|
- user: {{ name }}
|
||||||
- group: {{ user_group }}
|
- group: {{ user_group }}
|
||||||
|
{%- endif %}
|
||||||
group.present:
|
group.present:
|
||||||
- name: {{ user_group }}
|
- name: {{ user_group }}
|
||||||
{%- if 'prime_group' in user and 'gid' in user['prime_group'] %}
|
{%- if 'prime_group' in user and 'gid' in user['prime_group'] %}
|
||||||
|
|
Loading…
Reference in New Issue