diff options
| author | alex <alex@pdp7.net> | 2025-10-11 17:55:49 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2025-10-11 17:56:46 +0200 |
| commit | 340e1da68775afb99e049854624ae36ea2d46bd0 (patch) | |
| tree | ab51283ac320687ded8f3334b537663964d2601a /infrastructure/roles/users/tasks/main.yaml | |
| parent | 6915da790011815ffb0f80d0708665e7dc3accb7 (diff) | |
Add userdirs
Diffstat (limited to 'infrastructure/roles/users/tasks/main.yaml')
| -rw-r--r-- | infrastructure/roles/users/tasks/main.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/infrastructure/roles/users/tasks/main.yaml b/infrastructure/roles/users/tasks/main.yaml index 37d616c..43ecc25 100644 --- a/infrastructure/roles/users/tasks/main.yaml +++ b/infrastructure/roles/users/tasks/main.yaml @@ -5,6 +5,12 @@ groups: - sudo loop: "{{ users }}" +- name: accesible home directory (for web serving, for example) + ansible.builtin.file: + path: "/home/{{ item.name }}" + state: directory + mode: '0701' + loop: "{{ users }}" - name: create .ssh directory ansible.builtin.file: path: "/home/{{ item.name }}/.ssh" |
