git: kill gpg-agent in tests on newer OpenSUSE hosts (#52476)

(cherry picked from commit bb0a69e084)
This commit is contained in:
Jordan Borean 2019-02-18 21:30:31 +10:00 committed by Toshio Kuratomi
parent 211fe600a4
commit a17d9f1cc6

View file

@ -182,7 +182,7 @@
- name: GPG-VERIFICATION | Stop gpg-agent so we can remove any locks on the GnuPG dir
command: gpgconf --kill gpg-agent
when: ansible_os_family != 'Suse' # OpenSUSE ships with an older version of gpg-agent that doesn't support this
when: ansible_os_family != 'Suse' or ansible_distribution_version != '42.3' # OpenSUSE 42.3 ships with an older version of gpg-agent that doesn't support this
environment:
GNUPGHOME: "{{ git_gpg_gpghome }}"