- Finished: ghostty, git, gitea-server, go and yazi - Cleanup helpers appimage.yml and nerdfont_config.yml
73 lines
2.8 KiB
YAML
73 lines
2.8 KiB
YAML
# vim: filetype=yaml.ansible :
|
|
#
|
|
## Package: gitea-server
|
|
## Description: git server with project management and a good web UI
|
|
## Version: 1.24.5
|
|
## Methods: appimage
|
|
## Helpers: appimage
|
|
---
|
|
- name: Set gitea default facts # {{{
|
|
ansible.builtin.set_fact:
|
|
gitea:
|
|
methods:
|
|
- appimage
|
|
version: "{{ gitea_server_version | default('1.25.5') }}"
|
|
baseurl: https://dl.gitea.com/gitea
|
|
os:
|
|
Darwin: darwin-10.12
|
|
Linux: linux
|
|
arch:
|
|
x86_64: amd64
|
|
amd64: amd64
|
|
arm64: arm64
|
|
aarch64: arm64
|
|
sha256sum:
|
|
1.25.5:
|
|
x86_64:
|
|
Linux: 1c86b689cd44f843299cb12b5b3eb1189d0638d5ffda04eb6b4dd0fe395422fc
|
|
Darwin: 7f609e30c574886019157bb9424db63516a7f7b0e9b4ac9e400533ced557d0a2
|
|
arm64:
|
|
Linux: 371e29efea7d0fa7851aee5512869a9c8690b2d17e7486696465b9e26cd5b1d8
|
|
Darwin: 32fc0bd019020ba9056fd350acc56ce0aa7d119065580156b2c0d1d051e251c1
|
|
1.24.5:
|
|
x86_64:
|
|
Linux: 59029c97fe491b93c19705ba313f6b2397a8fe70cb2bd6fc021925f3cfb8e03d
|
|
1.23.7:
|
|
x86_64:
|
|
Darwin: 71e0087d48da89ff16a5accced0c94e1be7f796cf8ea8dc6a03bc4797c3d32f7
|
|
Linux: 3c0a7121ad1d9c525a92c68a7c040546553cd41e7464ce2fa811246b648c0a46
|
|
arm64:
|
|
Darwin: 2d3cbe3fb68c9e529578d404a8a49c73554c90d786305363442a33c2854eb051
|
|
Linux: eaaf65d888e06dd5fd72c6e01575eab1863aad186133dfc199d243b3bbc56e49
|
|
# }}}
|
|
- name: Configure gitea-server
|
|
when:
|
|
- "'gitea-server' not in __configured"
|
|
block:
|
|
- name: Set gitea-server install method
|
|
when:
|
|
- gitea_server_imethod is undefined
|
|
ansible.builtin.set_fact:
|
|
gitea_server_imethod: "{{ imethod if imethod in gitea.methods else gitea.methods[0] }}"
|
|
|
|
- name: Configure gitea-server archive install
|
|
when:
|
|
- gitea_server_imethod == 'appimage'
|
|
block:
|
|
- name: Set gitea-server binary facts
|
|
ansible.builtin.set_fact:
|
|
gitea_bin_install: # use appimage helper, as it's basically the same thing
|
|
url: "https://dl.gitea.com/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.arch[system] }}-{{ gitea.arch[architecture] }}"
|
|
name: gitea
|
|
filename: "gitea-{{ gitea.version }}-{{ gitea.arch[system] }}-{{ gitea.arch[architecture] }}"
|
|
checksum: "sha256:{{ gitea_server_checksum | default(gitea.sha256sum[gitea.version]) }}"
|
|
|
|
- name: Queue gitea-server binary install
|
|
ansible.builtin.set_fact:
|
|
pkg_appimage: "{{ pkg_appimage + [gitea_bin_install] }}"
|
|
gitea_server_install: "{{ gitea_server_imethod }}={{ gitea_bin_install }}"
|
|
|
|
- name: Finalise gitea-server configuration
|
|
ansible.builtin.set_fact:
|
|
__configured: "{{ __configured | combine( {'gitea-server': gitea_server_install } ) }}"
|