diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml index 65d8f36..7725b8c 100644 --- a/roles/gitea/defaults/main.yml +++ b/roles/gitea/defaults/main.yml @@ -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 diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 92e928e..a08104b 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -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 }}