From 7f0ebe982c2345bdd6015a6a6f974a645907f3d6 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Tue, 31 Aug 2021 03:39:51 +0200 Subject: [PATCH] Add gpg to keyring and add gpg-agent.conf --- roles/dotfiles/files/fish/config.fish | 2 +- roles/dotfiles/files/gpg-agent.conf | 2 ++ roles/dotfiles/tasks/main.yml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 roles/dotfiles/files/gpg-agent.conf diff --git a/roles/dotfiles/files/fish/config.fish b/roles/dotfiles/files/fish/config.fish index 11cdc01..011c67e 100644 --- a/roles/dotfiles/files/fish/config.fish +++ b/roles/dotfiles/files/fish/config.fish @@ -7,4 +7,4 @@ if status --is-login end end -eval (keychain --eval --agents ssh --quick) +eval (keychain --eval --agents ssh --agents gpg 82CD152AAAE9CAF77EACB29E73F092605AF3286C) diff --git a/roles/dotfiles/files/gpg-agent.conf b/roles/dotfiles/files/gpg-agent.conf new file mode 100644 index 0000000..0ffbdb7 --- /dev/null +++ b/roles/dotfiles/files/gpg-agent.conf @@ -0,0 +1,2 @@ +default-cache-ttl 10800 +maximum-cache-ttl 10800 diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index bcd2b8a..419c7d5 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -55,6 +55,7 @@ - '{{home}}/.config/i3status/config' - '{{home}}/.config/rofi/config' - '{{home}}/.gitconfig' + - '{{home}}/.gnupg/gpg-agent.conf' - name: Make sure folders exist file: @@ -66,6 +67,7 @@ - '{{home}}/.config/rofi/' - '{{home}}/.ssh/' - '{{home}}/pictures/shots/' + - '{{home}}/.gnupg/' - name: Link files file: @@ -92,3 +94,5 @@ dest: '{{home}}/pictures/wallpaper' - src: '{{files_dir}}/gitconfig' dest: '{{home}}/.gitconfig' + - src: '{{files_dir}}/gpg-agent.conf' + dest: '{{home}}/.gnupg/gpg-agent.conf'