Installs and configures Syncthing for the user.
The following roles are required:
- whalej84.lxml
The following collections are required:
- community.general
They can be installed by running ansible-galaxy collection install $COLLECTION
.
To include this role in your requirements.yml
file, add the following list item:
---
roles:
- name: whalej84.syncthing
src: https://github.com/WhaleJ84/ansible-role-syncthing.git
scm: git
- name: whalej84.lxml
src: https://github.com/WhaleJ84/ansible-role-lxml.git
scm: git
collections:
- community.general
Name | Type | Description | Default |
---|---|---|---|
syncthing_config_dir | string | A path to state where the syncthing config file should be located | "$HOME/.local/state/syncthing" |
minumum_free_disk_percentage | string | A numeric value to state the minimum percent of free disk space required for shared folders | 15 |
This example playbook shows how I would use this role, with custom variables to suit my needs.
---
- hosts: localhost
roles:
role: whalej84.syncthing
tags: [ syncthing ]