From 333ad144ba734e1d428f66c20799e7f1bfb45a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 5 Apr 2020 19:29:44 +0200 Subject: [PATCH] gpg: Skip no-symkey-cache on ubuntu 18.04, gpg version too old --- gnupg/gpg.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnupg/gpg.conf.j2 b/gnupg/gpg.conf.j2 index 7913628..1c8ae63 100644 --- a/gnupg/gpg.conf.j2 +++ b/gnupg/gpg.conf.j2 @@ -34,7 +34,12 @@ fixed-list-mode no-mangle-dos-filenames require-cross-certification +{% if not (distro == 'ubuntu' and ansible_distribution_version == '18.04') -%} +{# looks like the gpg version in that ubuntu release it too old and does not +{# contain the setting #} # do not cache keys for symmetric encryption no-symkey-cache +{% endif -%} + keyserver-options no-honor-keyserver-url no-auto-key-retrieve include-revoked