From 86f107e8f4027a3447414f925107a267fe729374 Mon Sep 17 00:00:00 2001 From: Vincent Finance Date: Thu, 16 Jan 2025 22:00:05 +0100 Subject: [PATCH] Add missing info about group for users directory --- ansible/roles/users/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/users/tasks/main.yml b/ansible/roles/users/tasks/main.yml index e2af29d..d297760 100644 --- a/ansible/roles/users/tasks/main.yml +++ b/ansible/roles/users/tasks/main.yml @@ -29,6 +29,7 @@ ansible.builtin.file: path: /home/{{ item.name }} owner: "{{ item.name }}" + group: "{{ item.name }}" state: directory mode: 0700 with_items: "{{ user_details }}" @@ -37,6 +38,7 @@ ansible.builtin.file: path: /home/{{ item.name }}/.ssh owner: "{{ item.name }}" + group: "{{ item.name }}" state: directory mode: 0700 with_items: "{{ user_details }}"