Finish 5 packages, cleanups
- Finished: ghostty, git, gitea-server, go and yazi - Cleanup helpers appimage.yml and nerdfont_config.yml
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
||||||
url: "{{ appimage.url }}"
|
url: "{{ appimage.url }}"
|
||||||
dest: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
dest: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
||||||
|
checksum: "{{ appimage.checksum | default(omit) }}"
|
||||||
decompress: false
|
decompress: false
|
||||||
backup: false
|
backup: false
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
- gtk4-layer-shell-devel
|
- gtk4-layer-shell-devel
|
||||||
- libadwaita-devel
|
- libadwaita-devel
|
||||||
- gettext
|
- gettext
|
||||||
AlmaLinux: *redha
|
AlmaLinux: *redhat
|
||||||
CentOS: *redhat
|
CentOS: *redhat
|
||||||
Rocky: *redhat
|
Rocky: *redhat
|
||||||
Debian: &debian
|
Debian: &debian
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
|
#
|
||||||
|
## Package: git
|
||||||
|
## Description: leading vcs software
|
||||||
|
## Version: latest
|
||||||
|
## Methods: [system]
|
||||||
---
|
---
|
||||||
- name: Set git default facts # {{{
|
- name: Set git default facts # {{{
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
@@ -1,16 +1,72 @@
|
|||||||
# vim: filetype=yaml.ansible :
|
# 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: Load gitea-server configuration
|
- name: Set gitea default facts # {{{
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.set_fact:
|
||||||
file: config/gitea-server.yml
|
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: Download gitea-server binary
|
- name: Configure gitea-server archive install
|
||||||
become: true
|
when:
|
||||||
ansible.builtin.get_url:
|
- gitea_server_imethod == 'appimage'
|
||||||
url: "{{ gitea_server.url }}/{{ gitea_server.file }}"
|
block:
|
||||||
mode: '0755'
|
- name: Set gitea-server binary facts
|
||||||
dest: /usr/local/bin/gitea
|
ansible.builtin.set_fact:
|
||||||
owner: root
|
gitea_bin_install: # use appimage helper, as it's basically the same thing
|
||||||
group: root
|
url: "https://dl.gitea.com/gitea/{{ gitea.version }}/gitea-{{ gitea.version }}-{{ gitea.arch[system] }}-{{ gitea.arch[architecture] }}"
|
||||||
checksum: "{{ gitea_server.sha256url }}"
|
name: gitea
|
||||||
decompress: false
|
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 } ) }}"
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
|
#
|
||||||
|
## Package: go
|
||||||
|
## Description: go compiler and module manager
|
||||||
|
## Version: 1.26.1
|
||||||
---
|
---
|
||||||
- name: Set go default facts # {{{
|
- name: Set go default facts # {{{
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -12,6 +16,7 @@
|
|||||||
Darwin: go
|
Darwin: go
|
||||||
FreeBSD:
|
FreeBSD:
|
||||||
default: go
|
default: go
|
||||||
|
1.26: go126
|
||||||
1.25: go125
|
1.25: go125
|
||||||
1.24: go124
|
1.24: go124
|
||||||
1.23: go123
|
1.23: go123
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
|
#
|
||||||
|
## Package: yazi
|
||||||
|
## Description: best tui filemanager
|
||||||
|
## Version: 26.1.22
|
||||||
|
## Methods: [source]
|
||||||
|
## Helpers: [cargo_build]
|
||||||
---
|
---
|
||||||
- name: Configure yazi installation # {{{
|
- name: Configure yazi installation # {{{
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
Reference in New Issue
Block a user