add version var
This commit is contained in:
parent
d3eba41cd5
commit
ebddb8b7d4
2 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
gitea_version: "1.0.1"
|
||||
|
||||
gitea_app_name: "Gitea"
|
||||
gitea_user: "gitea"
|
||||
gitea_home: "/var/lib/gitea"
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
# TODO: variabilize this
|
||||
- name: "Download the binary"
|
||||
get_url:
|
||||
url: "https://github.com/go-gitea/gitea/releases/download/v1.0.1/gitea-1.0.1-linux-amd64"
|
||||
url: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-{{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
|
||||
dest: /usr/local/bin/gitea
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
force: yes
|
||||
notify: "Restart gitea"
|
||||
|
||||
- include: create_user.yml
|
||||
|
|
Loading…
Reference in a new issue