mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2022-10-19 17:00
This commit is contained in:
18
roles/nas/templates/rsyncd.conf.j2
Normal file
18
roles/nas/templates/rsyncd.conf.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
{% for share in nas_shares %}
|
||||
{% if share.protocols.rsync.enabled %}
|
||||
[{{ share.name }}]
|
||||
path = {{ share.path | default(nas_root_dir + '/data/' + share.name) }}
|
||||
comment = {{ share.description }}
|
||||
uid = rsync
|
||||
gid = rsync
|
||||
read only = {{ share.protocols.rsync.read_only | ternary('yes','no') }}
|
||||
{% if share.protocols.rsync.users is defined and share.protocols.rsync.users.keys() | list | length > 0 %}
|
||||
auth users = {{ share.protocols.rsync.users.keys() | list | join(' ') }}
|
||||
secrets file = {{ nas_root_dir }}/meta/{{ share.name }}/rsync.secrets
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
# Rsync access is disabled for {{ share.name }}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
Reference in New Issue
Block a user