mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Create standard XDG home directories
This commit is contained in:
@@ -5,6 +5,16 @@ user_group: fscotto
|
|||||||
user_home: "/home/{{ username }}"
|
user_home: "/home/{{ username }}"
|
||||||
user_shell: /bin/bash
|
user_shell: /bin/bash
|
||||||
|
|
||||||
|
xdg_user_directories:
|
||||||
|
- Desktop
|
||||||
|
- Documents
|
||||||
|
- Downloads
|
||||||
|
- Music
|
||||||
|
- Pictures
|
||||||
|
- Public
|
||||||
|
- Templates
|
||||||
|
- Videos
|
||||||
|
|
||||||
common_packages:
|
common_packages:
|
||||||
- bash-completion
|
- bash-completion
|
||||||
- bat
|
- bat
|
||||||
|
|||||||
@@ -4,6 +4,15 @@
|
|||||||
name: bat
|
name: bat
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure XDG user directories exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ user_home }}/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ username }}"
|
||||||
|
group: "{{ user_group }}"
|
||||||
|
mode: "0755"
|
||||||
|
loop: "{{ xdg_user_directories | default([]) }}"
|
||||||
|
|
||||||
- name: Copy common dotfiles
|
- name: Copy common dotfiles
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ playbook_dir }}/../dotfiles/common/{{ item.src }}"
|
src: "{{ playbook_dir }}/../dotfiles/common/{{ item.src }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user