From 39e791a1d37a24abe57bdc3ddccff43b505d462e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 5 May 2012 12:18:04 -0400 Subject: [PATCH] Log last execution of ansible-pull to /var/log/ansible-pull.log TODO: logrotate script and append to log instead. --- examples/playbooks/templates/ansible-pull.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/playbooks/templates/ansible-pull.j2 b/examples/playbooks/templates/ansible-pull.j2 index bab3f3f73d9..c6f1759cca8 100644 --- a/examples/playbooks/templates/ansible-pull.j2 +++ b/examples/playbooks/templates/ansible-pull.j2 @@ -1,2 +1,2 @@ # Cron job to git clone/pull a repo and then run locally -{{ schedule }} {{ cron_user }} ansible-pull -d {{ workdir }} -U {{ repo_url }} +{{ schedule }} {{ cron_user }} ansible-pull -d {{ workdir }} -U {{ repo_url }} >/var/log/ansible-pull.log 2>&1