summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-09-07 17:41:07 +0100
committerJoe Carstairs <me@joeac.net>2026-09-07 17:41:07 +0100
commitb56721c23dc239fa0c8446e6b4ccf3616c853a2e (patch)
tree88e62aea3776736e0502d1867d258af0e3b560f8 /roles
parentc1ae5e365e37cf9235656da83612af821ca1a44f (diff)
simplify update http script
Diffstat (limited to 'roles')
-rw-r--r--roles/http/tasks/main.yml8
-rw-r--r--roles/http/templates/update_http8
2 files changed, 1 insertions, 15 deletions
diff --git a/roles/http/tasks/main.yml b/roles/http/tasks/main.yml
index 4907c55..dc44b95 100644
--- a/roles/http/tasks/main.yml
+++ b/roles/http/tasks/main.yml
@@ -106,14 +106,8 @@
group: nginx
mode: "600"
-- name: Install script to update http
- ansible.builtin.template:
- src: update_http
- dest: /usr/bin/update_http
- mode: "755"
-
- name: Install daily crontab to update http
ansible.builtin.cron:
special_time: daily
name: Update http
- job: /usr/bin/update_http
+ job: git -C {{ src_dir }}/joeac.net/http pull; make
diff --git a/roles/http/templates/update_http b/roles/http/templates/update_http
deleted file mode 100644
index 38f6bd7..0000000
--- a/roles/http/templates/update_http
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-cd {{ src_dir }}/joeac.net/http
-git pull
-if make -q
-then
- make
-fi