dotfiles/roles/user/base/tasks/structure.yml
Matej Focko 01225fd44d
chore: rework directory structure
Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-08-30 15:42:26 +02:00

20 lines
427 B
YAML

---
- name: Create directories in `~/.local`
ansible.builtin.file:
path: "{{ item }}"
state: directory
mode: 0700
owner: "{{ target_user }}"
group: "{{ target_user }}"
loop:
- ~/.local/bin
- ~/.local/share
- ~/.ssh
- name: Create empty file for tokens
ansible.builtin.file:
path: ~/.tokens
state: touch
mode: 0600
owner: "{{ target_user }}"
group: "{{ target_user }}"