From 96d788247198ca8f636c60120c1d63abbecd15ff Mon Sep 17 00:00:00 2001 From: bretello Date: Tue, 8 Dec 2020 02:05:07 +0100 Subject: [PATCH] install: make git config setup idem-potent --- ansible/playbooks/setup.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/playbooks/setup.yml b/ansible/playbooks/setup.yml index 6a52829..00a0458 100644 --- a/ansible/playbooks/setup.yml +++ b/ansible/playbooks/setup.yml @@ -62,10 +62,20 @@ # "ipython": "~/.ipython" # FIXME: ipython config is more complex "ansible.cfg": "~/.ansible.cfg" + - name: git config facts + community.general.git_config: + name: "include.path" + scope: global + register: config_value + - debug: + msg: "Git config include.path={{ config_value }}" + - name: git config community.general.git_config: name: "include.path" value: "{{ DOTFILES }}/gitconfig" + scope: global + when: config_value is not defined - name: annoyances shell: |