mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
Update all tasks that download stuff to not become, this fixes some environments with http_proxies
This commit is contained in:
parent
fd2b6c6026
commit
4a4f3db890
4 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
||||||
checksum: "sha256:{{ gitea_forgejo_checksum }}"
|
checksum: "sha256:{{ gitea_forgejo_checksum }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
register: _download_archive
|
register: _download_archive
|
||||||
|
become: false
|
||||||
until: _download_archive is succeeded
|
until: _download_archive is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
dest: "/tmp/{{ gitea_filename }}.asc"
|
dest: "/tmp/{{ gitea_filename }}.asc"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
register: _download_asc
|
register: _download_asc
|
||||||
|
become: false
|
||||||
until: _download_asc is succeeded
|
until: _download_asc is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
checksum: "sha256:{{ gitea_dl_url }}.xz.sha256"
|
checksum: "sha256:{{ gitea_dl_url }}.xz.sha256"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
register: _download_archive
|
register: _download_archive
|
||||||
|
become: false
|
||||||
until: _download_archive is succeeded
|
until: _download_archive is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
dest: "/tmp/{{ gitea_filename }}.xz.asc"
|
dest: "/tmp/{{ gitea_filename }}.xz.asc"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
register: _download_asc
|
register: _download_asc
|
||||||
|
become: false
|
||||||
until: _download_asc is succeeded
|
until: _download_asc is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
url: 'https://codeberg.org/api/v1/repos/forgejo/forgejo/releases?limit=1'
|
url: 'https://codeberg.org/api/v1/repos/forgejo/forgejo/releases?limit=1'
|
||||||
return_content: true
|
return_content: true
|
||||||
register: gitea_forgejo_remote_metadata
|
register: gitea_forgejo_remote_metadata
|
||||||
|
become: false
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: "Fail if running in check mode without versions set."
|
- name: "Fail if running in check mode without versions set."
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
url: 'https://codeberg.org/api/v1/repos/forgejo/forgejo/releases/tags/v{{ gitea_version_target }}'
|
url: 'https://codeberg.org/api/v1/repos/forgejo/forgejo/releases/tags/v{{ gitea_version_target }}'
|
||||||
return_content: true
|
return_content: true
|
||||||
register: gitea_forgejo_remote_tags_metadata
|
register: gitea_forgejo_remote_tags_metadata
|
||||||
|
become: false
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: "Generate forgejo download url"
|
- name: "Generate forgejo download url"
|
||||||
|
@ -61,6 +63,7 @@
|
||||||
url: "{{ gitea_forgejo_checksum_url | first }}"
|
url: "{{ gitea_forgejo_checksum_url | first }}"
|
||||||
return_content: true
|
return_content: true
|
||||||
register: _gitea_forgejo_dl_checksum
|
register: _gitea_forgejo_dl_checksum
|
||||||
|
become: false
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: Set forjeo checksum
|
- name: Set forjeo checksum
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
url: https://api.github.com/repos/go-gitea/gitea/releases/latest
|
url: https://api.github.com/repos/go-gitea/gitea/releases/latest
|
||||||
return_content: true
|
return_content: true
|
||||||
register: gitea_remote_metadata
|
register: gitea_remote_metadata
|
||||||
|
become: false
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|
||||||
- name: "Fail if running in check mode without versions set."
|
- name: "Fail if running in check mode without versions set."
|
||||||
|
|
Loading…
Reference in a new issue