Ansible: Create XDG home directories based on xdg facts

This commit is contained in:
Eryn Wells 2025-01-31 16:37:16 -08:00
parent cc42c50438
commit 9005e00e4e
2 changed files with 15 additions and 0 deletions

View file

@ -2,6 +2,9 @@
- name: Configure ZSH
import_tasks: zsh.yml
- name: Configure XDG environment
import_tasks: xdg_home.yml
- name: Configure vim
import_tasks: vim.yml
- name: Configure neovim

View file

@ -0,0 +1,12 @@
---
- name: Create XDG directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ ansible_user_id }}"
mode: 0750
loop:
- "{{ ansible_local.xdg.config_home }}"
- "{{ ansible_local.xdg.data_home }}"
- "{{ ansible_local.xdg.state_home }}"