diff --git a/roles/autoradio/templates/autoradio-backup.cron.j2 b/roles/autoradio/templates/autoradio-backup.cron.j2 index 10572011ede820c965bd2d1c7bc012794a5ff64e..d47e3c96384d04f77ac7a92395002333d9e3d15f 100644 --- a/roles/autoradio/templates/autoradio-backup.cron.j2 +++ b/roles/autoradio/templates/autoradio-backup.cron.j2 @@ -4,6 +4,7 @@ # daily on different hosts, so the effect of hosts going down is just # a reduction in backup frequency. # +PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin KEEP_LAST=30 INDEX={% for host in groups['all'] | sort %}{% if host == inventory_hostname %}{{ loop.index0 }}{% endif %}{% endfor %}