aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: