aboutsummaryrefslogtreecommitdiff
path: root/roles/gitea/tasks/update.yml
blob: 46538ae94af321106eda8698e0e1900ea8892b35 (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.com/gitea/{{ gitea.version.ver }}/gitea-{{ gitea.version.ver }}-linux-amd64'
    checksum: 'sha256:{{ gitea_sha256 }}'
    dest: /usr/local/bin/gitea
    owner: root
    group: root
    mode: '755'
  become: yes
  notify:
    - Handle systemd