From 89c181ee07d0f81dfb87677f4ce7b5add394e222 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 14 Aug 2022 22:07:36 +0100 Subject: [PATCH] Make ~/data and ~/data/opt --- roles/home-cli/tasks/dirs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/tasks/dirs.yml b/roles/home-cli/tasks/dirs.yml index 5a23634..e544d00 100644 --- a/roles/home-cli/tasks/dirs.yml +++ b/roles/home-cli/tasks/dirs.yml @@ -18,13 +18,18 @@ path: "{{ ansible_env.HOME }}" state: directory mode: '0700' +- name: Create user data directory + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/data" + state: directory + mode: '0700' - name: Create user bin directory ansible.builtin.file: path: "{{ ansible_env.HOME }}/.local/bin" state: directory - name: Create user opt directory ansible.builtin.file: - path: "{{ ansible_env.HOME }}/opt" + path: "{{ ansible_env.HOME }}/data/opt" state: directory - name: Create systemd user directory ansible.builtin.file: