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', }