Add changed_when to gpg command

This commit is contained in:
flyingscorpio@clevo 2022-04-08 22:54:14 +02:00
parent 231da79a9c
commit 42d3c7eb40

View file

@ -103,6 +103,8 @@
- name: Verify downloaded binary - recv pgp key
command: gpg --keyserver hkps://keys.openpgp.org --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
register: result
changed_when: '"not changed" not in result.stderr'
- name: Verify downloaded binary - verify with gpg
command: "gpg --verify /tmp/gitea-{{ gitea_binary.json.latest.version }}.asc /home/git/gitea-{{ gitea_binary.json.latest.version }}"