diff --git a/users/init.sls b/users/init.sls index 4b790a8..62c94df 100644 --- a/users/init.sls +++ b/users/init.sls @@ -64,7 +64,7 @@ users_{{ name }}_{{ group }}_group: {% if user.get('createhome', True) %} users_{{ name }}_user_prereq: file.directory: - - name: {{ home }} + - name: {{ salt['file.dirname'](home) }} - makedirs: True - prereq: - user: users_{{ name }}_user