Don't download gitea binary if not needed

This commit is contained in:
flyingscorpio@clevo 2022-04-09 13:52:53 +02:00
parent 1964e28d7d
commit 381059eaa7

View file

@ -77,6 +77,11 @@
url: https://dl.gitea.io/gitea/version.json
register: gitea_binary
- name: Find if latest gitea version is installed
stat:
path: "/home/git/gitea-{{ gitea_binary.json.latest.version }}"
register: latest_gitea_binary
- name: Set gitea binary architecture to amd64
set_fact:
gitea_binary_arch: amd64
@ -95,6 +100,7 @@
owner: git
group: git
mode: 0664
when: not latest_gitea_binary.stat.exists
notify:
- Receive gitea pgp key
- Download gitea asc file