aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--galaxy.yml2
-rw-r--r--roles/gitea/Readme.md1
-rw-r--r--roles/gitea/defaults/main.yml3
-rw-r--r--roles/gitea/tasks/main.yml14
-rw-r--r--roles/gitea/tasks/update.yml2
5 files changed, 16 insertions, 6 deletions
diff --git a/galaxy.yml b/galaxy.yml
index 444290c..6f329cd 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -1,6 +1,6 @@
namespace: kompetenzbolzen
name: stuff
-version: 0.18.4
+version: 0.18.5
readme: README.md
authors:
- Jonas Gunz <himself@jonasgunz.de>
diff --git a/roles/gitea/Readme.md b/roles/gitea/Readme.md
index 139de4a..56edd0a 100644
--- a/roles/gitea/Readme.md
+++ b/roles/gitea/Readme.md
@@ -8,7 +8,6 @@ gitea:
key: '/etc/ssl/private/ssl-cert-snakeoil.key'
version:
ver: '1.15.3'
- sha: 'd08d63b1202ece7b701c2c254776a38e0637995e8ff3c6855581ee8e37e9b3fb'
ldap:
enable: true
security: 'starttls'
diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml
index 524cf43..6892455 100644
--- a/roles/gitea/defaults/main.yml
+++ b/roles/gitea/defaults/main.yml
@@ -8,8 +8,7 @@ gitea:
cert: '/etc/ssl/certs/ssl-cert-snakeoil.pem'
key: '/etc/ssl/private/ssl-cert-snakeoil.key'
version:
- ver: '1.15.3'
- sha: 'd08d63b1202ece7b701c2c254776a38e0637995e8ff3c6855581ee8e37e9b3fb'
+ ver: '1.19.1'
ldap:
enable: true
security: 'starttls'
diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml
index a5d7081..36e5f43 100644
--- a/roles/gitea/tasks/main.yml
+++ b/roles/gitea/tasks/main.yml
@@ -37,6 +37,18 @@
state: directory
become: yes
+- name: pull sha256sum
+ uri:
+ url: 'https://dl.gitea.io/gitea/{{ gitea.version.ver }}/gitea-{{ gitea.version.ver }}-linux-amd64.sha256'
+ method: GET
+ return_content: yes
+ register: gitea_sha256_raw
+
+- name: set sha256sum
+ set_fact:
+ gitea_sha256: '{{ (gitea_sha256_raw.content | split(" "))[0] }}'
+ cacheable: false
+
- name: Check for update
stat:
path: /usr/local/bin/gitea
@@ -47,7 +59,7 @@
- name: perform update
include: update.yml
when:
- - (not gitea_bin_stat.stat.exists) or (gitea_bin_stat.stat.checksum != gitea.version.sha)
+ - (not gitea_bin_stat.stat.exists) or (gitea_bin_stat.stat.checksum != gitea_sha256)
- name: Check if initial setup is needed
include_tasks: secrets.yml
diff --git a/roles/gitea/tasks/update.yml b/roles/gitea/tasks/update.yml
index 5b6d458..6609f0c 100644
--- a/roles/gitea/tasks/update.yml
+++ b/roles/gitea/tasks/update.yml
@@ -13,7 +13,7 @@
- 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 }}'
+ checksum: 'sha256:{{ gitea_sha256 }}'
dest: /usr/local/bin/gitea
owner: root
group: root