summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--task-master-client.yaml7
-rw-r--r--website.yaml8
2 files changed, 12 insertions, 3 deletions
diff --git a/task-master-client.yaml b/task-master-client.yaml
index e020446..fe982be 100644
--- a/task-master-client.yaml
+++ b/task-master-client.yaml
@@ -40,6 +40,13 @@
cp ca.cert.pem /home/eug-vs/.config/task
chown -R eug-vs:eug-vs /home/eug-vs/.config/task
+ # This is a workaround to https://github.com/GothenburgBitFactory/taskserver/issues/46
+ - name: Create recurrence cronjob
+ cron:
+ name: "Create recurrent tasks"
+ minute: "0"
+ job: "/usr/bin/task sync && /usr/bin/task && /usr/bin/task sync"
+
- name: Run task sync init
shell: task sync init
diff --git a/website.yaml b/website.yaml
index 60dda4e..41ea90c 100644
--- a/website.yaml
+++ b/website.yaml
@@ -29,9 +29,11 @@
- name: Setup auto-renewing certificates
become: true
- shell: |
- echo "0 12 * * * /usr/bin/certbot renew --quiet" >> /tmp/crontab
- crontab /tmp/crontab
+ cron:
+ name: "Auto-renew certificates"
+ minute: "0"
+ hour: "12"
+ job: "/usr/bin/certbot renew --quiet"
- name: Allow user to write to website location
become: true