From b56721c23dc239fa0c8446e6b4ccf3616c853a2e Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 7 Sep 2026 17:41:07 +0100 Subject: simplify update http script --- roles/http/tasks/main.yml | 8 +------- roles/http/templates/update_http | 8 -------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 roles/http/templates/update_http (limited to 'roles') 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 -- cgit v1.2.3