From 958832fb1fd6095f5d43828ec83840ece4db9abe Mon Sep 17 00:00:00 2001 From: Michael DeHaan <michael.dehaan@gmail.com> 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 bab3f3f..c6f1759 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 -- libgit2 0.26.0