1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

add gitea_gpg_keyserver_option

This commit is contained in:
pat-s 2023-05-06 17:27:47 +02:00
parent 51011fa3ac
commit 7e8b35642c
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ gitea_version_check: true
gitea_gpg_key: '7C9E68152594688862D62AF62D9AE806EC1592E2' gitea_gpg_key: '7C9E68152594688862D62AF62D9AE806EC1592E2'
gitea_forgejo_gpg_key: 'EB114F5E6C0DC2BCDD183550A4B61A2DC5923710' gitea_forgejo_gpg_key: 'EB114F5E6C0DC2BCDD183550A4B61A2DC5923710'
gitea_gpg_server: 'hkps://keys.openpgp.org' gitea_gpg_server: 'hkps://keys.openpgp.org'
gitea_gpg_keyserver_option: ''
gitea_backup_on_upgrade: false gitea_backup_on_upgrade: false
gitea_backup_location: "{{ gitea_home }}/backups/" gitea_backup_location: "{{ gitea_home }}/backups/"
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -59,7 +59,7 @@
verbosity: 1 verbosity: 1
- name: Import gitea gpg key - name: Import gitea gpg key
ansible.builtin.command: "gpg --keyserver {{ gitea_gpg_server }} --recv {{ gitea_gpg_key }}" ansible.builtin.command: "gpg --keyserver {{ gitea_gpg_server }} --keyserver-option '{{ gitea_gpg_keyserver_option }}' --recv {{ gitea_gpg_key }}"
register: _gitea_import_key register: _gitea_import_key
become: false become: false
changed_when: '"imported: 1" in _gitea_import_key.stderr' changed_when: '"imported: 1" in _gitea_import_key.stderr'