Setup rsync as a server.
Defaults: defaults/main.yml
rsync_server_timeout
: Timeout for connections, default300
secondsrsync_server_max_connections
: Maximum number of connections, default10
rsync_server_shares
: A list of dictionaries of shares with fields:name
: The published name of the share, requiredpath
: Filesystem path of the share, requiredcomment
: Description of the share, default is the same asname
readonly
: Whether the share is read-only, defaultTrue
uid
: User name or ID when access the share, defaultnobody
gid
: Group name or ID when access the share, defaultnobody
excludes
: A list of exclusions, default['lost+found', '.*']
Log rotation:
rsync_server_logrotate_interval
: Rotate log files at this interval, defaultweekly
rsync_server_logrotate_backlog_size
: Number of backlog files to keep, default52
- hosts: localhost
roles:
- role: ome.rsync_server
rsync_server_shares:
- name: dataset-1
comment: Public datasets
path: /data/1
This role was originally written with the OME's minimal requirements in mind. Please also take a look at @stejoo's fork which has additional features.