Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

ome/ansible-role-rsync-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rsync Server

Actions Status Ansible Role

Setup rsync as a server.

Role Variables

Defaults: defaults/main.yml

  • rsync_server_timeout: Timeout for connections, default 300 seconds
  • rsync_server_max_connections: Maximum number of connections, default 10
  • rsync_server_shares: A list of dictionaries of shares with fields:
    • name: The published name of the share, required
    • path: Filesystem path of the share, required
    • comment: Description of the share, default is the same as name
    • readonly: Whether the share is read-only, default True
    • uid: User name or ID when access the share, default nobody
    • gid: Group name or ID when access the share, default nobody
    • excludes: A list of exclusions, default ['lost+found', '.*']

Log rotation:

  • rsync_server_logrotate_interval: Rotate log files at this interval, default weekly
  • rsync_server_logrotate_backlog_size: Number of backlog files to keep, default 52

Example Playbook

- hosts: localhost
  roles:
  - role: ome.rsync_server
    rsync_server_shares:
    - name: dataset-1
      comment: Public datasets
      path: /data/1

Related roles

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.

Author Information

ome-devel@lists.openmicroscopy.org.uk