From 1e619f21acc57098cc83529809b4af91980efdf2 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Sun, 23 Jan 2022 02:34:05 +0100 Subject: [PATCH] remove default group --- tasks/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/users.yml b/tasks/users.yml index 9805452..47f4bd5 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -4,7 +4,7 @@ ansible.builtin.user: name: "{{ user.username }}" state: "{{ user.state | default('present') }}" - group: "{{ user.group | default(user.username) }}" + group: "{{ user.group | default(omit) }}" groups: "{{ user.groups | default(omit) | join(',') }}" comment: "{{ user.comment | default(omit) }}" shell: "{{ user.shell | default(omit) }}"