Add missing info about group for users directory

This commit is contained in:
Vincent F. 2025-01-16 22:00:05 +01:00
parent f642599504
commit 86f107e8f4

View File

@ -29,6 +29,7 @@
ansible.builtin.file: ansible.builtin.file:
path: /home/{{ item.name }} path: /home/{{ item.name }}
owner: "{{ item.name }}" owner: "{{ item.name }}"
group: "{{ item.name }}"
state: directory state: directory
mode: 0700 mode: 0700
with_items: "{{ user_details }}" with_items: "{{ user_details }}"
@ -37,6 +38,7 @@
ansible.builtin.file: ansible.builtin.file:
path: /home/{{ item.name }}/.ssh path: /home/{{ item.name }}/.ssh
owner: "{{ item.name }}" owner: "{{ item.name }}"
group: "{{ item.name }}"
state: directory state: directory
mode: 0700 mode: 0700
with_items: "{{ user_details }}" with_items: "{{ user_details }}"