aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-07-22 23:54:01 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-07-22 23:54:01 +0200
commitf88d2629bfe2a35494240a9d97a5a4759cb86d34 (patch)
treedfc8fbc049352c0355bdc9f3e584a288cd2f850d
parent0fa3841f5f335e97d6b09a9aa6d7c6ccdce7fbd4 (diff)
downloadansible_collection-f88d2629bfe2a35494240a9d97a5a4759cb86d34.tar.gz
gitea fix giteadev
-rw-r--r--galaxy.yml2
-rw-r--r--roles/gitea/tasks/main.yml9
2 files changed, 9 insertions, 2 deletions
diff --git a/galaxy.yml b/galaxy.yml
index 6de9c3b..efd7d6b 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -1,6 +1,6 @@
namespace: kompetenzbolzen
name: stuff
-version: 0.26.0
+version: 0.26.1
readme: README.md
authors:
- Jonas Gunz <himself@jonasgunz.de>
diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml
index 0d49cf3..575f459 100644
--- a/roles/gitea/tasks/main.yml
+++ b/roles/gitea/tasks/main.yml
@@ -71,13 +71,20 @@
url: 'https://codeberg.org/forgejo/forgejo/releases/download/v{{ gitea.version.ver }}/forgejo-{{ gitea.version.ver }}-linux-amd64.sha256'
method: GET
return_content: yes
- register: gitea_sha256_raw
+ register: forgejo_sha256_raw
when: gitea_use_forgejo
- name: set sha256sum
set_fact:
gitea_sha256: '{{ (gitea_sha256_raw.content | split(" "))[0] }}'
cacheable: false
+ when: not gitea_use_forgejo
+
+- name: set sha256sum
+ set_fact:
+ gitea_sha256: '{{ (forgejo_sha256_raw.content | split(" "))[0] }}'
+ cacheable: false
+ when: gitea_use_forgejo
- name: Check for update
stat: