summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2019-01-21 23:32:23 +0100
committerRobin Krahl <me@robin-krahl.de>2019-01-21 23:32:23 +0100
commit0a2047ed189b891bb3876f7256a757a6c139310e (patch)
treed4cfdf02fb67f5ce6265d56b57bc15e66b13ecef
parent1fdc48f687552006d48a1fb7f7a67f31a6430a7f (diff)
downloadansible-roles-0a2047ed189b891bb3876f7256a757a6c139310e.tar.gz
ansible-roles-0a2047ed189b891bb3876f7256a757a6c139310e.tar.bz2
Create XDG base directory in config
-rw-r--r--config/tasks/main.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/tasks/main.yaml b/config/tasks/main.yaml
index b875a38..b1197c1 100644
--- a/config/tasks/main.yaml
+++ b/config/tasks/main.yaml
@@ -3,3 +3,14 @@
dest: "/home/{{ user_name }}/.local/share/dotfiles"
repo: "https://git.ireas.org/dotfiles"
verify_commit: yes
+- name: Make XDG base directories
+ file:
+ path: "/home/{{ user_name }}/{{ item }}"
+ state: directory
+ owner: "{{ user_name }}"
+ group: "{{ user_name }}"
+ mode: u=rwx,g=rx,o=rx
+ with_items:
+ - .config
+ - .cache
+ - .local/share