diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-06-02 12:04:50 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-06-02 12:04:50 +0200 |
commit | 0fa3841f5f335e97d6b09a9aa6d7c6ccdce7fbd4 (patch) | |
tree | 5357672cb288505a83ec1ae48480561f9e1a8890 /roles/gitea/tasks/update.yml | |
parent | 7cd054de6bec2b4b097639e5e69b482236a37113 (diff) | |
download | ansible_collection-0fa3841f5f335e97d6b09a9aa6d7c6ccdce7fbd4.tar.gz |
gitea allow forgejo
Diffstat (limited to 'roles/gitea/tasks/update.yml')
-rw-r--r-- | roles/gitea/tasks/update.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/gitea/tasks/update.yml b/roles/gitea/tasks/update.yml index 46538ae..ae6fe1f 100644 --- a/roles/gitea/tasks/update.yml +++ b/roles/gitea/tasks/update.yml @@ -21,3 +21,17 @@ become: yes notify: - Handle systemd + when: not gitea_use_forgejo + +- name: Download forgejo + get_url: + url: 'https://codeberg.org/forgejo/forgejo/releases/download/v{{ gitea.version.ver }}/forgejo-{{ gitea.version.ver }}-linux-amd64' + checksum: 'sha256:{{ gitea_sha256 }}' + dest: /usr/local/bin/gitea + owner: root + group: root + mode: '755' + become: yes + notify: + - Handle systemd + when: gitea_use_forgejo |