From ce16bca2795fbd87980a8c5872249e0ca56845af Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 8 Dec 2020 12:21:33 +0100 Subject: [PATCH] feat(git): store local configs under ~/.local/etc/git --- roles/git/files/config | 4 ++-- roles/git/tasks/main.yml | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/roles/git/files/config b/roles/git/files/config index 7af5964..dd2daae 100644 --- a/roles/git/files/config +++ b/roles/git/files/config @@ -80,5 +80,5 @@ required = true [include] - path = ~/.config/git/config.host # host-specific (from template) - path = ~/.config/git/config.local # optional manual configurations + path = ~/.local/etc/git/config.host # host-specific (from template) + path = ~/.local/etc/git/config # optional manual configurations diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index abd531f..3c9952a 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -9,10 +9,14 @@ homebrew: name={{ item }} state=latest loop: [git, git-crypt, git-lfs] -- name: Create the git config directory +- name: Create the git config directories file: - path: ~/.config/git + path: "{{ item }}" state: directory + loop: + - ~/.config/git + - ~/.local/bin + - ~/.local/etc/git - name: Deploy git config file: @@ -27,12 +31,7 @@ - name: Deploy git host-specific config template: src: config.host.j2 - dest: ~/.config/git/config.host - -- name: Create bin directory for additional git commands - file: - path: ~/.local/bin - state: directory + dest: ~/.local/etc/git/config.host - name: Deploy additional git commands file: