ansible/roles/ftpsync/templates/ftpsync.conf.j2

48 lines
1.5 KiB
Django/Jinja

{{ ansible_header | comment }}
MIRRORNAME="{{ ftpsync.mirror.name }}"
TO="{{ ftpsync.root}}/{{ item.dest }}/"
MAILTO="root"
# HUB=false
########################################################################
## Connection options
########################################################################
RSYNC_HOST="{{ item.rsync_host }}"
RSYNC_PATH="{{ item.rsync_path }}"
# RSYNC_USER=
# RSYNC_PASSWORD=
########################################################################
## Mirror information options
########################################################################
INFO_MAINTAINER="{{ ftpsync.mirror.info.maintainer }}"
INFO_COUNTRY="{{ ftpsync.mirror.info.country }}"
INFO_LOCATION="{{ ftpsync.mirror.info.location }}"
INFO_THROUGHPUT=1Gb
########################################################################
## Include and exclude options
########################################################################
# ARCH_INCLUDE=
# ARCH_EXCLUDE=
########################################################################
## Log option
########################################################################
LOGDIR="/var/log/mirror"
## If you do want a mail about every single sync, set this to false
## Everything else will only send mails if a mirror sync fails
ERRORSONLY="true"
## If you want the logs to also include output of rsync, set this to true.
## Careful, the logs can get pretty big, especially if it is the first mirror
## run
FULLLOGS="false"