aboutsummaryrefslogtreecommitdiff
path: root/roles/gitea/tasks/update.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/gitea/tasks/update.yml')
-rw-r--r--roles/gitea/tasks/update.yml23
1 files changed, 23 insertions, 0 deletions
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