From 828f7b727458a8d09d040e0d2eb93f849a805a7b Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Sun, 23 Jan 2022 02:35:27 +0100 Subject: [PATCH] remove group --- tasks/users.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }}"