Skip to content

Commit 85f20a7

Browse files
authored
Merge pull request roles-ansible#91 from roles-ansible/b
solve issue with gitea gpg key and download
2 parents 577faa2 + 8928b24 commit 85f20a7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tasks/install.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@
5151
changed_when: false
5252
failed_when: _gitea_gpg_key_status.rc not in (0, 2)
5353

54+
- name: print gpg key staus on verbosity
55+
ansible.builtin.debug:
56+
msg: "{{ _gitea_gpg_key_status.stdout }}"
57+
verbosity: 1
58+
5459
- name: Import gitea gpg key
5560
ansible.builtin.command: "gpg --keyserver {{ gitea_gpg_server }} --recv {{ gitea_gpg_key }}"
5661
register: _gitea_import_key
5762
changed_when: '"imported: 1" in _gitea_import_key.stderr'
58-
when: _gitea_gpg_key_status.rc != 0
63+
when: '_gitea_gpg_key_status.rc != 0 or "expired" in _gitea_gpg_key_status.stdout'
5964

6065
- name: Check archive signature
6166
ansible.builtin.command: "gpg --verify /tmp/{{ gitea_filename }}.xz.asc /tmp/{{ gitea_filename }}.xz"

vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gitea_go_arch_map:
88
armv5l: 'arm-5'
99

1010
gitea_arch: "{{ gitea_go_arch_map[ansible_architecture] | default(ansible_architecture) }}"
11-
gitea_filename: "gitea-{{ gitea_version }}.linux-{{ gitea_arch }}"
11+
gitea_filename: "gitea-{{ gitea_version_target }}.linux-{{ gitea_arch }}"
1212

1313
gitea_variables:
1414
files:
@@ -56,5 +56,5 @@ transfer_custom_footer:
5656
- 'files/gitea_footer/extra_links_footer.tmpl'
5757
- 'files/extra_links_footer.tmpl'
5858

59-
playbook_version_number: 40 # should be int
59+
playbook_version_number: 41 # should be int
6060
playbook_version_path: 'do1jlr.gitea.version'

0 commit comments

Comments
 (0)