changing how the hook fires off

This commit is contained in:
Ubergeek 2019-03-18 11:51:10 +00:00
parent dd3a374135
commit 2dca052c60
1 changed files with 1 additions and 1 deletions

View File

@ -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.";
}