diff --git a/users/init.sls b/users/init.sls index b264c99..a9619b4 100644 --- a/users/init.sls +++ b/users/init.sls @@ -25,7 +25,9 @@ include: - group: {{ name }} group.present: - name: {{ name }} + {% if 'uid' in user -%} - gid: {{ user['uid'] }} + {% endif %} user.present: - name: {{ name }} - home: {{ home }}