blob: 5b6d4589ebc7cc2c94f0f2038a2105581461ce7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
---
# initial ?
- name: Stop gitea
systemd:
name: gitea
state: stopped
become: yes
when: not gitea_bin_stat.failed
ignore_errors: yes
- name: Download Gitea
get_url:
url: 'https://dl.gitea.io/gitea/{{ gitea.version.ver }}/gitea-{{ gitea.version.ver }}-linux-amd64'
checksum: 'sha256:{{ gitea.version.sha }}'
dest: /usr/local/bin/gitea
owner: root
group: root
mode: '755'
become: yes
notify:
- Handle systemd
|