From 925faaa0b7fe086eb8af9d2c4f8a3117ef1d94ce Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 15 Dec 2024 00:02:45 +0100 Subject: [PATCH] Aggiunta creazione cartella. --- roles/nix/tasks/configuration.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/nix/tasks/configuration.yml b/roles/nix/tasks/configuration.yml index 2ac1763..8d8eb22 100644 --- a/roles/nix/tasks/configuration.yml +++ b/roles/nix/tasks/configuration.yml @@ -16,6 +16,14 @@ become_user: root become: true + - name: Assure configuration folder exists + ansible.builtin.file: + path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" + state: directory + owner: "{{ additional_user }}" + become: true + become_user: "{{ additional_user }}" + - name: Adding configuration to local user ansible.builtin.file: src: "{{ dotfdir }}/nix"