diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-07-22 23:54:01 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-07-22 23:54:01 +0200 |
commit | f88d2629bfe2a35494240a9d97a5a4759cb86d34 (patch) | |
tree | dfc8fbc049352c0355bdc9f3e584a288cd2f850d /roles/gitea/tasks/main.yml | |
parent | 0fa3841f5f335e97d6b09a9aa6d7c6ccdce7fbd4 (diff) | |
download | ansible_collection-dev.tar.gz |
gitea fix giteadev
Diffstat (limited to 'roles/gitea/tasks/main.yml')
-rw-r--r-- | roles/gitea/tasks/main.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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: |