ansible-roles/webapps/gitea/tasks/upgrade.yml
Mathieu Gauthier-Pilote aad108d6c0
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |4839|0|4839|0|:zzz:
gitea/ansible-roles/pipeline/head This commit looks good
New role to install + upgrade Gitea
2023-03-10 10:43:44 -05:00

27 lines
505 B
YAML

---
# tasks file for gitea upgrade
- name: Download gitea binary
get_url:
url: "{{ gitea_url }}"
dest: /usr/local/bin
checksum: "{{ gitea_checksum }}"
mode: '0755'
- name: Create symbolic link
file:
src: "/usr/local/bin/gitea-{{ git_version }}-linux-amd64"
dest: "/usr/local/bin/gitea"
state: link
- name: Start gitea systemd unit
service:
name: "gitea@{{ service }}"
state: restarted
- name: Reload nginx conf
service:
name: nginx
state: reloaded