From e920a10a5c15b53683ee5caff122ec9378032cd5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 9 Oct 2021 19:04:39 +0200 Subject: gitea: WIP --- roles/gitea/tasks/update.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 roles/gitea/tasks/update.yml (limited to 'roles/gitea/tasks/update.yml') diff --git a/roles/gitea/tasks/update.yml b/roles/gitea/tasks/update.yml new file mode 100644 index 0000000..5b6d458 --- /dev/null +++ b/roles/gitea/tasks/update.yml @@ -0,0 +1,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 -- cgit v1.2.3