ansible-test git: kill gpg-agent to remove locks (#50917)

* ansible-test git: kill gpg-agent to remove locks

* skip gpg-agent kill for OpenSUSE
pull/50922/head
Jordan Borean 6 years ago committed by GitHub
parent 03669cdcdd
commit 3db6b9b416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -180,6 +180,10 @@
- git_verify is failed
- git_verify.msg is match("Failed to verify GPG signature of commit/tag.+")
- 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
- name: GPG-VERIFICATION | Remove GnuPG verification workdir
file:
path: "{{ git_gpg_workdir.path }}"

Loading…
Cancel
Save