From 256a08f1a702118478ea12e4262f387a921cbac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 29 Jun 2021 21:40:11 +0200 Subject: [PATCH] GnuPG: install my key Tried something fancy with ansible-galaxy but meh --- .gitmodules | 3 +++ config/automatrop/plugins/modules/gpg_key | 1 + config/automatrop/roles/gnupg/tasks/main.yml | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 160000 config/automatrop/plugins/modules/gpg_key diff --git a/.gitmodules b/.gitmodules index e444087..bd1e309 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "config/automatrop/plugins/modules/aur"] path = config/automatrop/plugins/modules/aur url = https://github.com/kewlfft/ansible-aur.git +[submodule "config/automatrop/plugins/modules/gpg_key"] + path = config/automatrop/plugins/modules/gpg_key + url = https://github.com/netson/ansible-gpg-key.git diff --git a/config/automatrop/plugins/modules/gpg_key b/config/automatrop/plugins/modules/gpg_key new file mode 160000 index 0000000..435f8e6 --- /dev/null +++ b/config/automatrop/plugins/modules/gpg_key @@ -0,0 +1 @@ +Subproject commit 435f8e6aea0ba9be482c4409db380868a23fea9c diff --git a/config/automatrop/roles/gnupg/tasks/main.yml b/config/automatrop/roles/gnupg/tasks/main.yml index 24abc82..1890860 100644 --- a/config/automatrop/roles/gnupg/tasks/main.yml +++ b/config/automatrop/roles/gnupg/tasks/main.yml @@ -47,5 +47,6 @@ # TODO Set default-key in extensions depending on which ones are available # TODO Add enable-ssh-support to gpg-agent.conf in extensions to signal shenv that we should not use the SSH agent -# TODO Import 0x8312C8CAC1BAC289 with https://github.com/netson/ansible-gpg-key, -# think about the source +- name: Install Geoffrey Frogeye's key + gpg_key: + fpr: 4FBA930D314A03215E2CDB0A8312C8CAC1BAC289