Option fo force the download of the binary.

This commit is contained in:
Andrea Dell'Amico 2021-06-23 16:12:28 +02:00
parent db905031d5
commit 8bef54b784
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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 }}