1
0
forked from infra/ansible

gitea: implement fetching binary

This commit is contained in:
Markus 2020-06-23 16:32:00 +02:00
parent 22372c931d
commit 6a9c4aedae
2 changed files with 6 additions and 2 deletions

View File

@ -2,5 +2,7 @@
gitea_user: gogs
gitea_group: gogs
gitea_version: 1.11.6
gitea_checksum: sha256:20264002c28117d3107d3b01efde2cecea2cd98db22e18edd108ed25ae0edc53
gitea_version: 1.12.1
gitea_url: https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64

View File

@ -13,7 +13,9 @@
- /opt/gitea/custom
- /opt/gitea/custom/conf
# TODO fetch gitea binary
- name: Download gitea binary
get_url: url={{ gitea_url }} dest=/opt/gitea/gitea checksum={{ gitea_checksum }} mode=0755
notify: Restart gitea
- name: Configure gitea
template: src=app.ini.j2 dest=/opt/gitea/custom/conf/app.ini force=no owner={{ gitea_user }}