Allow to set a custom Download-URL for gitea
This commit is contained in:
parent
8506ca4f2b
commit
16707f4a38
4 changed files with 4 additions and 3 deletions
|
@ -56,6 +56,7 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we
|
||||||
* `gitea_version_check`: Check if installed version != `gitea_version` before initiating binary download
|
* `gitea_version_check`: Check if installed version != `gitea_version` before initiating binary download
|
||||||
* `gitea_user`: UNIX user used by Gitea
|
* `gitea_user`: UNIX user used by Gitea
|
||||||
* `gitea_home`: Base directory to work
|
* `gitea_home`: Base directory to work
|
||||||
|
* `gitea_dl_url`: The URL, the compiled gitea-binary will be downloaded from
|
||||||
|
|
||||||
### Look and feel
|
### Look and feel
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
gitea_version: "1.11.5"
|
gitea_version: "1.11.5"
|
||||||
gitea_version_check: true
|
gitea_version_check: true
|
||||||
|
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}"
|
||||||
|
|
||||||
gitea_app_name: "Gitea"
|
gitea_app_name: "Gitea"
|
||||||
gitea_user: "gitea"
|
gitea_user: "gitea"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
- name: "Download the binary"
|
- name: "Download the binary"
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ gitea_dl_url }}/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ gitea_arch }}"
|
url: "{{ gitea_dl_url }}"
|
||||||
dest: /usr/local/bin/gitea
|
dest: /usr/local/bin/gitea
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
---
|
---
|
||||||
gitea_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
|
gitea_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
|
||||||
gitea_dl_url: "https://github.com/go-gitea/gitea/releases/download"
|
|
||||||
|
|
Loading…
Reference in a new issue