Update to 2022-01-31 19:00

This commit is contained in:
Daniel Berteaud
2022-01-31 19:00:05 +01:00
parent 4b336e0934
commit 8fafa2187c
8 changed files with 13 additions and 19 deletions

View File

@@ -1,11 +1,11 @@
---
# Version to install
gitea_version: 1.15.10
gitea_version: 1.16.0
# URL to the binary
gitea_bin_url: https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64
# sha256 of the binary
gitea_bin_sha256: 8dfab91bde02a27fba0248ba1d0175b2e4ff57ba3ef7a9da3e68cbb11d15178a
gitea_bin_sha256: dd526619a499f7764b3e3b646d55f6f9b672121566d7094eef45ec6847ef9fa9
# Handle updates. If set to false, ansible will only install
# Gitea and then won't touch an existing installation
gitea_manage_upgrade: True

View File

@@ -6,21 +6,13 @@
- name: Download gitea binary
get_url:
url: "{{ gitea_bin_url }}"
dest: "{{ gitea_root_dir }}/tmp/gitea"
dest: "{{ gitea_root_dir }}/bin/gitea"
checksum: "sha256:{{ gitea_bin_sha256 }}"
mode: 755
when: gitea_install_mode != 'none'
notify: restart gitea
tags: gitea
- name: Move gitea binary
command: mv -f {{ gitea_root_dir }}/tmp/gitea {{ gitea_root_dir }}/bin/
when: gitea_install_mode != 'none'
tags: gitea
- name: Make gitea executable
file: path={{ gitea_root_dir }}/bin/gitea mode=0755
tags: gitea
- name: Deploy gitea service unit
template: src=gitea.service.j2 dest=/etc/systemd/system/gitea.service
register: gitea_unit