forked from thunix/www
changing how the hook fires off
This commit is contained in:
parent
dd3a374135
commit
2dca052c60
|
@ -24,7 +24,7 @@ syslog(LOG_INFO, 'Ansible Webhook recieved.');
|
||||||
|
|
||||||
|
|
||||||
if (time()-filemtime($lastrun) > 300) {
|
if (time()-filemtime($lastrun) > 300) {
|
||||||
exec("/etc/cron.hourly/ansible-pull");
|
exec("/usr/bin/touch /tmp/run_ansible");
|
||||||
touch ($lastrun);
|
touch ($lastrun);
|
||||||
echo "HTTP 200 - Ansible webhook recieved.";
|
echo "HTTP 200 - Ansible webhook recieved.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue