summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
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