summaryrefslogtreecommitdiff
path: root/roles/git-daemon/tasks
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-08-26 10:37:32 +0100
committerJoe Carstairs <me@joeac.net>2026-08-26 10:37:32 +0100
commitc4029e0ca955b7b6b64db7784573414576e52da7 (patch)
tree5970b4633e7311dcd6615d0e2be08e89e0b049a1 /roles/git-daemon/tasks
parent13c14b6cb9576489c99775e8ff19934378d1e760 (diff)
git-daemon is self-updating
Diffstat (limited to 'roles/git-daemon/tasks')
-rw-r--r--roles/git-daemon/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/git-daemon/tasks/main.yml b/roles/git-daemon/tasks/main.yml
index 5508b1e..6b0724c 100644
--- a/roles/git-daemon/tasks/main.yml
+++ b/roles/git-daemon/tasks/main.yml
@@ -33,3 +33,15 @@
name: safe.directory
add_mode: add
value: "{{ git_directory }}/*"
+
+- name: Install script to update git-daemon
+ ansible.builtin.copy:
+ src: update_git-daemon
+ dest: /usr/bin/update_git-daemon
+ mode: "755"
+
+- name: Install daily crontab to update git-daemon
+ ansible.builtin.cron:
+ special_time: daily
+ name: Update git-daemon
+ job: /usr/bin/update_git-daemon