Don't download gitea binary if not needed
This commit is contained in:
parent
1964e28d7d
commit
381059eaa7
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue