From ba49638af92aaa5349c5476db8136caec4b0166d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 21 Nov 2018 20:37:01 +0100 Subject: Add user dirs configuration --- roles/init/files/user_dirs/user-dirs.dirs | 15 +++++++++++++++ roles/init/files/user_dirs/user-dirs.locale | 1 + roles/init/tasks/main.yml | 7 +++++++ 3 files changed, 23 insertions(+) create mode 100644 roles/init/files/user_dirs/user-dirs.dirs create mode 100644 roles/init/files/user_dirs/user-dirs.locale diff --git a/roles/init/files/user_dirs/user-dirs.dirs b/roles/init/files/user_dirs/user-dirs.dirs new file mode 100644 index 0000000..fd59b25 --- /dev/null +++ b/roles/init/files/user_dirs/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME" +XDG_DOWNLOAD_DIR="$HOME/Downloads" +XDG_TEMPLATES_DIR="$HOME" +XDG_PUBLICSHARE_DIR="$HOME" +XDG_DOCUMENTS_DIR="$HOME" +XDG_MUSIC_DIR="$HOME" +XDG_PICTURES_DIR="$HOME" +XDG_VIDEOS_DIR="$HOME" diff --git a/roles/init/files/user_dirs/user-dirs.locale b/roles/init/files/user_dirs/user-dirs.locale new file mode 100644 index 0000000..9f0da78 --- /dev/null +++ b/roles/init/files/user_dirs/user-dirs.locale @@ -0,0 +1 @@ +fr_FR \ No newline at end of file diff --git a/roles/init/tasks/main.yml b/roles/init/tasks/main.yml index c06a078..576053d 100644 --- a/roles/init/tasks/main.yml +++ b/roles/init/tasks/main.yml @@ -15,6 +15,13 @@ changed_when: false register: gnupg_runtime_dir_cmd check_mode: no +- name: Add user dirs + copy: + src: "user_dirs/{{ item }}" + dest: "$XDG_CONFIG_HOME/{{ item }}" + loop: + - user-dirs.dirs + - user-dirs.locale - name: Add pam_environment register: pam_environment template: -- cgit v1.2.3