From 9fab75e3ef51e0eb9fa4fdd25a50556178fc6fc1 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 11 Oct 2020 20:27:02 +0200 Subject: [PATCH] Add GPG key to gitconfig automatically Signed-off-by: Matej Focko --- playbooks/fedora.yml | 3 ++- playbooks/roles/git/templates/gitconfig.j2 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/fedora.yml b/playbooks/fedora.yml index 8418eb0..ea5c6b6 100644 --- a/playbooks/fedora.yml +++ b/playbooks/fedora.yml @@ -9,4 +9,5 @@ - role: git vars: git_email: - - vscode \ No newline at end of file + gpg_signingkey: + - vscode diff --git a/playbooks/roles/git/templates/gitconfig.j2 b/playbooks/roles/git/templates/gitconfig.j2 index 85d712b..47dc81f 100644 --- a/playbooks/roles/git/templates/gitconfig.j2 +++ b/playbooks/roles/git/templates/gitconfig.j2 @@ -17,4 +17,4 @@ [user] name = Matej Focko email = {{ git_email }} - signingkey = + signingkey = {{ gpg_signingkey }}