From 1972977fb69cdbb427ea9e9e8f2f12560c154b2d Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 19 Jan 2019 00:14:00 +0100 Subject: [PATCH] create config folders --- tasks/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7ccd7a3..dbe7182 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,7 @@ --- -# register variables -- import_tasks: variables.yml + +- name: register variables + import_tasks: variables.yml # ensure i3 packages are installed [Debian]. - include_tasks: setup-Debian.yml @@ -17,16 +18,17 @@ # create i3 config file - name: Creates directory file: - path: '~/.config/i3' + path: '/home/{{ ansible_user }}/.config' state: directory mode: 0750 owner: "{{ ansible_user }}" - name: create i3 config folder file: - path: ~/.config/i3/ + path: '/home/{{ ansible_user }}/.config/i3/' state: directory mode: 0755 + owner: "{{ ansible_user }}" - name: register i3 config file action: stat path="~/.config/i3/config"