diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-10-09 19:04:39 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-10-09 19:04:39 +0200 |
commit | e920a10a5c15b53683ee5caff122ec9378032cd5 (patch) | |
tree | c51dd14cfad71c8c543c8ab2f43b54c227507ef9 /roles/gitea/tasks/update.yml | |
parent | e11720ab7511e32c8e9e62b94f6578703eac6c42 (diff) | |
download | ansible_collection-e920a10a5c15b53683ee5caff122ec9378032cd5.tar.gz |
gitea: WIP
Diffstat (limited to 'roles/gitea/tasks/update.yml')
-rw-r--r-- | roles/gitea/tasks/update.yml | 23 |
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 |