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 }}"