1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Add plays to verify Gitea binary

This commit is contained in:
Aidan Fitzgerald 2018-10-18 03:36:00 -04:00
parent e351a1c7c1
commit fc7ff3bc3b
2 changed files with 16 additions and 0 deletions

View file

@ -15,6 +15,7 @@ iset_suffixes:
gitea_iset_suffix: "{{ iset_suffixes[ansible_architecture | default("unknown architecture")] }}"
gitea_download_url: "https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_iset_suffix }}"
gitea_integrity_url: "{{ gitea_download_url }}.asc"
# Information needed to run Gitea
gitea_user: gitea

View file

@ -7,6 +7,21 @@
- install
when: internet_available
- name: Download Gitea GPG signature
get_url:
url: "{{ gitea_integrity_url }}"
dest: "{{ gitea_install_path }}.asc"
tags:
- install
when: internet_available
- name: Verify Gitea binary with GPG signature
shell: |
gpg --keyserver pgp.mit.edu --recv 7C9E68152594688862D62AF62D9AE806EC1592E2
gpg --verify {{ gitea_install_path }}.asc {{ gitea_install_path }}
tags:
- install
- name: Create 'gitea' service
template:
src: gitea.service.j2