Option fo force the download of the binary.
This commit is contained in:
parent
db905031d5
commit
8bef54b784
|
@ -7,6 +7,7 @@
|
|||
#
|
||||
gitea_version: 1.14.3
|
||||
gitea_download_url: 'https://dl.gitea.io/gitea/{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64'
|
||||
gitea_force_binary_download: False
|
||||
gitea_bin_path: /usr/local/bin/gitea
|
||||
|
||||
gitea_conf_dir: /etc/gitea
|
||||
|
|
|
@ -36,7 +36,22 @@
|
|||
mode: 0755
|
||||
|
||||
- name: Download the gitea binary
|
||||
get_url: url={{ gitea_download_url }} dest={{ gitea_bin_path }} owner=root group={{ gitea_group }} mode=0750
|
||||
get_url:
|
||||
url: '{{ gitea_download_url }}'
|
||||
dest: '{{ gitea_bin_path }}'
|
||||
owner: root
|
||||
group: '{{ gitea_group }}'
|
||||
mode: 0750
|
||||
|
||||
- name: Force the download of the gitea binary to upgrade it
|
||||
get_url:
|
||||
url: '{{ gitea_download_url }}'
|
||||
dest: '{{ gitea_bin_path }}'
|
||||
owner: root
|
||||
group: '{{ gitea_group }}'
|
||||
mode: 0750
|
||||
force: true
|
||||
when: gitea_force_binary_download
|
||||
|
||||
- name: Install the required packages
|
||||
package: state=present use=auto name={{ gitea_required_packages }}
|
||||
|
|
Loading…
Reference in New Issue