ansible-ffibk/roles/service-nginx-firmware/templates/firmware-sync.service.j2
Julian Labus 767e1fe5e1
Role service-nginx-firmware: replace -a (-rlptgoD) in rsync command with -rlpt
Preserving owner and group causes problems if UIDs and GIDs differ 
between hosts.
2018-10-22 13:32:28 +02:00

11 lines
257 B
Django/Jinja

#
# {{ ansible_managed }}
#
[Unit]
Description=Synchronize Freifunk MWU Firmware directory
[Service]
Type=oneshot
ExecStart=/usr/bin/rsync -rlptvh4 --delete rsync://milchreis.freifunk-mwu.de:873/firmware /var/www/html/firmware
User=www-data
Group=www-data