mirror of https://github.com/ansible/ansible.git
Merge pull request #1049 from copperlight/ansible-pull_example_logrotate
add logrotate configpull/1047/merge
commit
4cffdbbc56
@ -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 }} >/var/log/ansible-pull.log 2>&1
|
||||
{{ schedule }} {{ cron_user }} ansible-pull -d {{ workdir }} -U {{ repo_url }} >>{{ logfile }} 2>&1
|
@ -0,0 +1,7 @@
|
||||
{{ logfile }} {
|
||||
rotate 7
|
||||
daily
|
||||
compress
|
||||
missingok
|
||||
notifempty
|
||||
}
|
Loading…
Reference in New Issue