From 7f6c9091400a054b8791b2b373eef7d58e270869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GIBAUD?= Date: Tue, 20 Mar 2018 10:06:48 +0100 Subject: [PATCH] patch to support users without secondary group --- tasks/baseline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/baseline.yml b/tasks/baseline.yml index 6d70f8c..4d4ec9e 100644 --- a/tasks/baseline.yml +++ b/tasks/baseline.yml @@ -26,7 +26,7 @@ name: "{{ item.name }}" password: "{{ item.password | default(omit) }}" group: "{{ item.group | default(item.name) }}" - groups: "{{ item.groups }}" + groups: "{{ item.groups | default([]) | union([item.group | default(item.name)]) | unique }}" append: yes shell: /bin/bash update_password: on_create