RHEL/CentOS - All your data across all your devices
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
handlers
meta
tasks
templates
tests
.travis.yml
COPYING
README.md

README.md

ansible-role-resilio_sync

Build Status Ansible Galaxy License

RHEL/CentOS - All your data across all your devices

Requirements

None

Role Variables

Available variables are listed below, along with default values.

rslsync_bind_interface: "{{ ansible_default_ipv4.interface }}"
rslsync_config_refresh_interval: 3600
rslsync_config_save_interval: 600
rslsync_device_name: "{{ inventory_hostname }}"
rslsync_directory_root: /
rslsync_directory_root_policy: all
rslsync_disk_low_priority: false
rslsync_download_limit: 0
rslsync_enable_file_system_notifications: true
rslsync_enable_journaling: true
rslsync_external_port: 0
rslsync_folder_defaults_use_relay: true
rslsync_folder_defaults_use_tracker: true
rslsync_folder_defaults_use_lan_broadcast: true
rslsync_folder_rescan_interval: 600
rslsync_groups: []
rslsync_lan_encrypt_data: true
rslsync_log_size: 100
rslsync_log_ttl: 7
rslsync_listening_port: 0
rslsync_max_file_size_for_versioning: 1000
rslsync_max_packet_size: 32
rslsync_max_torrent_metadata_size: 16
rslsync_peer_expiration_days: 7
rslsync_pid_file: /var/run/resilio-sync/sync.pid
rslsync_profiler_enabled: false
rslsync_proxy: {}
rslsync_rate_limit_local_peers: false
rslsync_recv_buf_size: 128
rslsync_send_buf_size: 128
rslsync_send_statistics: true
rslsync_shared_folders: {}
rslsync_storage_path: /var/lib/resilio-sync/
rslsync_sync_max_time_diff: 600
rslsync_sync_trash_ttl: 30
rslsync_upload_limit: 0
rslsync_use_upnp: true
rslsync_webui:
  allow_empty_password: false
  listen: '0.0.0.0:8888'
  login: admin
  password: admin
rslsync_worker_threads_count: 0

Dependencies

None

Example Playbook

With shared folders

- hosts: servers
  roles:
    - role: linuxhq.resilio_sync
      rslsync_device_name: "{{ inventory_hostname.split('.')[0] }}"
      rslsync_groups:
        - couchpotato
        - medusa
      rslsync_listening_port: 6881
      rslsync_shared_folders:
        data:
          dir: /mnt/data
          known_hosts: "{{ groups['media'] }}"
          overwrite_changes: false
          search_lan: false
          secret: ADUGZGNAWRX4TLRR6523SVSGZLXJYGBCF
          selective_sync: false
          use_relay_server: false
          use_sync_trash: false
          use_tracker: false
      rslsync_webui: {}

With Web UI

- hosts: servers
  roles:
    - role: linuxhq.resilio_sync
      rslsync_device_name: "{{ inventory_hostname.split('.')[0] }}"
      rslsync_groups:
        - couchpotato
        - medusa
      rslsync_listening_port: 6881
      rslsync_shared_folders: {}
      rslsync_webui:
        allow_empty_password: false
        listen: '0.0.0.0:8888'
        login: admin
        password: admin

License

Copyright (C) 2018 Taylor Kimball tkimball@linuxhq.org

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.