Ansible: Create XDG home directories based on xdg facts
This commit is contained in:
parent
cc42c50438
commit
9005e00e4e
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
Ansible/roles/eryn/tasks/xdg_home.yml
Normal file
12
Ansible/roles/eryn/tasks/xdg_home.yml
Normal 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 }}"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue