[rsync-mirror] Do not send mail on success

certbot_on_virtu
Alexandre Iooss 2020-04-01 09:46:02 +02:00
parent 0f880a1f2e
commit 253531f623
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
home: /var/mirror # unused, should be something empty home: /var/mirror # unused, should be something empty
shell: /bin/false shell: /bin/false
- name: Configure ftpsync cron - name: Configure rsync cron
template: template:
src: rsync-mirror-cron.j2 src: rsync-mirror-cron.j2
dest: /etc/cron.d/rsync-mirror dest: /etc/cron.d/rsync-mirror

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed }}
{% for i in rsync_mirror %} {% for i in rsync_mirror %}
{{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude source/ --verbose --stats --delete-after rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log" {{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude source/ --verbose --stats --delete-after rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log" > /dev/null
{% endfor %} {% endfor %}