diff --git a/tasks/users.yml b/tasks/users.yml index 47f4bd5..b3e54fa 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -3,8 +3,7 @@ tags: users ansible.builtin.user: name: "{{ user.username }}" - state: "{{ user.state | default('present') }}" - group: "{{ user.group | default(omit) }}" + state: "{{ user.state | default(omit) }}" groups: "{{ user.groups | default(omit) | join(',') }}" comment: "{{ user.comment | default(omit) }}" shell: "{{ user.shell | default(omit) }}"