reprepro: catch stderr of individual deb-docker runs

This should catch the stderr of each individual run into the separate
logfile.

Change-Id: Iace3511ee8ec876debfc7361ff814b1d181e1458
This commit is contained in:
Ian Wienand 2020-10-29 09:41:19 +11:00
parent 3ddbba92ae
commit b22abc02ff
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
- name: Install update cron jobs
cron:
name: 'Debian Docker reprepro mirror sync'
job: 'flock -n /var/run/reprepro/debian-docker.lock bash -c "for DISTRO in xenial bionic focal; do reprepro-mirror-update /etc/reprepro/debian-docker-\$DISTRO mirror.deb-docker >>/var/log/reprepro/debian-docker-\$DISTRO-mirror.log; done" 2>&1'
job: 'flock -n /var/run/reprepro/debian-docker.lock bash -c "for DISTRO in xenial bionic focal; do reprepro-mirror-update /etc/reprepro/debian-docker-\$DISTRO mirror.deb-docker >>/var/log/reprepro/debian-docker-\$DISTRO-mirror.log 2>&1; done"'
state: present
hour: '*/2'
minute: '{{ 45 | random(seed=inventory_hostname) }}'