From b193f40708b668cea5b1b163a0ddd9b508d609a6 Mon Sep 17 00:00:00 2001 From: chatton Date: Mon, 4 Dec 2023 20:45:53 +0000 Subject: [PATCH] adding configure git role --- roles/configure_git/tasks/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/configure_git/tasks/main.yml b/roles/configure_git/tasks/main.yml index 13a805e..c9cd356 100644 --- a/roles/configure_git/tasks/main.yml +++ b/roles/configure_git/tasks/main.yml @@ -23,4 +23,14 @@ - git_config: name: user.email scope: global - value: github.qpeyb@simplelogin.fr \ No newline at end of file + value: github.qpeyb@simplelogin.fr + +- name: Insert/Update "Match User" configuration block in /etc/ssh/sshd_config prepending and appending a new line + ansible.builtin.blockinfile: + path: ~/.gitconfig + append_newline: true + prepend_newline: true + block: | + [url "ssh://git@github.com/"] + insteadOf = https://github.com/ +