From 3587460d3765fd329672b5b47cebad8f2a3792c8 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 20 Sep 2024 20:47:56 +0200 Subject: [PATCH] Fix gitignore location --- tasks/dotfiles.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index 6c9381f..3cf84f3 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -15,6 +15,11 @@ update: yes when: dotfile_ssh_clone.failed +- name: create git configuration directory + file: + path: '{{ xdg_config_dir }}/git' + state: directory + - name: setup dotfiles file: path: '{{ item.dest }}' @@ -40,5 +45,5 @@ } - { src: '{{ ansible_env.HOME }}/dotfiles/.gitignore', - dest: '{{ ansible_env.HOME }}/.gitignore', + dest: '{{ xdg_config_dir }}/git/ignore', }