From 2dca052c60c81b8ab363523c8a9987542b767c52 Mon Sep 17 00:00:00 2001 From: Ubergeek Date: Mon, 18 Mar 2019 11:51:10 +0000 Subject: [PATCH] changing how the hook fires off --- githook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githook.php b/githook.php index 792c263..463985c 100644 --- a/githook.php +++ b/githook.php @@ -24,7 +24,7 @@ syslog(LOG_INFO, 'Ansible Webhook recieved.'); if (time()-filemtime($lastrun) > 300) { - exec("/etc/cron.hourly/ansible-pull"); + exec("/usr/bin/touch /tmp/run_ansible"); touch ($lastrun); echo "HTTP 200 - Ansible webhook recieved."; }