From 56c3721a5e6bb1a4cf5a048c8ac73a99cccc8e18 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sun, 19 Jan 2025 16:28:54 -0500 Subject: [PATCH] Add flexible home and group controls for users --- roles/base/tasks/system.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/base/tasks/system.yml b/roles/base/tasks/system.yml index 76a0963..852585c 100644 --- a/roles/base/tasks/system.yml +++ b/roles/base/tasks/system.yml @@ -80,8 +80,10 @@ state: present uid: "{{ item.value.uid }}" group: "{{ item.value.gid }}" + groups: "{{ item.value.groups | default([]) }}" shell: "{{ item.value.shell | default('/bin/bash') }}" create_home: "{{ item.value.home | default(false) }}" + home: "{{ item.value.homedir | default('/home/' + item.key) }}" system: "{{ item.value.system | default(false) }}" loop: "{{ users | dict2items }}" loop_control: