Update syncthing configuration
This commit is contained in:
parent
273dbbee26
commit
dfbaa7b4da
4 changed files with 13 additions and 133 deletions
|
|
@ -1,14 +1,7 @@
|
||||||
---
|
---
|
||||||
syncthing_app_dir: "/srv/docker/syncthing"
|
syncthing_app_dir: "/srv/docker/syncthing"
|
||||||
syncthing_config_version: 37
|
syncthing_image_tag: "syncthing/syncthing:2.0"
|
||||||
syncthing_api_key: !vault |
|
syncthing_config_version: 51
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
31663863326431623139663861316432656264646533323934393033386263613162303266613265
|
|
||||||
3239613930623264383161363664636232663764616138360a643239393735393862376133313062
|
|
||||||
63643434636462306663303434393837353230623830323065626432346336363332363063313533
|
|
||||||
6334633838636664610a323762373839393331653130393136356136303535393662643736643735
|
|
||||||
30316565373866326337383137633639636566623263333061633830366634666537633765343533
|
|
||||||
3736383135393238663963353131663733363962343163363539
|
|
||||||
|
|
||||||
syncthing_devices:
|
syncthing_devices:
|
||||||
- name: Desktop
|
- name: Desktop
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,11 @@
|
||||||
owner: sonny
|
owner: sonny
|
||||||
group: sonny
|
group: sonny
|
||||||
|
|
||||||
|
- name: Stop current containers
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: "{{ syncthing_app_dir }}"
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: Remove previous Syncthing configurations
|
- name: Remove previous Syncthing configurations
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
@ -40,6 +45,11 @@
|
||||||
group: sonny
|
group: sonny
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
# The current configuration has the bare minimum options configured per element
|
||||||
|
# and relies on falling back to syncthing's defaults. This is because Syncthing
|
||||||
|
# overwrites the config file while the application is running,
|
||||||
|
# see https://forum.syncthing.net/t/manage-devices-and-folders-with-ansible/20078.
|
||||||
|
# Note that the config version should also be updated whenever the image tag is updated.
|
||||||
- name: Copy Syncthing configuration
|
- name: Copy Syncthing configuration
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
@ -58,17 +68,6 @@
|
||||||
group: sonny
|
group: sonny
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Stop current containers
|
|
||||||
community.docker.docker_compose_v2:
|
|
||||||
project_src: "{{ syncthing_app_dir }}"
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
- name: Pull missing image
|
|
||||||
community.docker.docker_compose_v2:
|
|
||||||
project_src: "{{ syncthing_app_dir }}"
|
|
||||||
pull: missing
|
|
||||||
state: stopped
|
|
||||||
|
|
||||||
- name: Remove dangling containers
|
- name: Remove dangling containers
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ syncthing_app_dir }}"
|
project_src: "{{ syncthing_app_dir }}"
|
||||||
|
|
|
||||||
|
|
@ -14,39 +14,7 @@
|
||||||
</device>
|
</device>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
<filesystemType>basic</filesystemType>
|
|
||||||
<minDiskFree unit="%">20</minDiskFree>
|
<minDiskFree unit="%">20</minDiskFree>
|
||||||
<versioning>
|
|
||||||
<cleanupIntervalS>3600</cleanupIntervalS>
|
|
||||||
<fsPath></fsPath>
|
|
||||||
<fsType>basic</fsType>
|
|
||||||
</versioning>
|
|
||||||
|
|
||||||
<copiers>0</copiers>
|
|
||||||
<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
|
|
||||||
<hashers>0</hashers>
|
|
||||||
<order>random</order>
|
|
||||||
<ignoreDelete>false</ignoreDelete>
|
|
||||||
<scanProgressIntervalS>0</scanProgressIntervalS>
|
|
||||||
<pullerPauseS>0</pullerPauseS>
|
|
||||||
<maxConflicts>-1</maxConflicts>
|
|
||||||
<disableSparseFiles>false</disableSparseFiles>
|
|
||||||
<disableTempIndexes>false</disableTempIndexes>
|
|
||||||
<paused>false</paused>
|
|
||||||
<weakHashThresholdPct>25</weakHashThresholdPct>
|
|
||||||
<markerName>.stfolder</markerName>
|
|
||||||
<copyOwnershipFromParent>false</copyOwnershipFromParent>
|
|
||||||
<modTimeWindowS>0</modTimeWindowS>
|
|
||||||
<maxConcurrentWrites>2</maxConcurrentWrites>
|
|
||||||
<disableFsync>false</disableFsync>
|
|
||||||
<blockPullOrder>standard</blockPullOrder>
|
|
||||||
<copyRangeMethod>standard</copyRangeMethod>
|
|
||||||
<caseSensitiveFS>false</caseSensitiveFS>
|
|
||||||
<junctionsAsDirs>false</junctionsAsDirs>
|
|
||||||
<syncOwnership>false</syncOwnership>
|
|
||||||
<sendOwnership>false</sendOwnership>
|
|
||||||
<syncXattrs>false</syncXattrs>
|
|
||||||
<sendXattrs>false</sendXattrs>
|
|
||||||
</folder>
|
</folder>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
|
|
@ -56,20 +24,12 @@
|
||||||
name="{{ device.name }}"
|
name="{{ device.name }}"
|
||||||
compression="metadata">
|
compression="metadata">
|
||||||
<address>{{ device.address }}</address>
|
<address>{{ device.address }}</address>
|
||||||
<paused>false</paused>
|
|
||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
|
||||||
<maxSendKbps>0</maxSendKbps>
|
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
|
||||||
<maxRequestKiB>0</maxRequestKiB>
|
|
||||||
<untrusted>false</untrusted>
|
<untrusted>false</untrusted>
|
||||||
<remoteGUIPort>0</remoteGUIPort>
|
|
||||||
<numConnections>0</numConnections>
|
|
||||||
</device>
|
</device>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
<gui enabled="true" tls="true" debugging="false">
|
<gui enabled="true" tls="true" debugging="false">
|
||||||
<address>{{ syncthing_listen_address }}:{{ syncthing_gui_port }}</address>
|
<address>{{ syncthing_listen_address }}:{{ syncthing_gui_port }}</address>
|
||||||
<apikey>{{ syncthing_api_key }}</apikey>
|
|
||||||
<theme>default</theme>
|
<theme>default</theme>
|
||||||
<insecureAdminAccess>true</insecureAdminAccess>
|
<insecureAdminAccess>true</insecureAdminAccess>
|
||||||
</gui>
|
</gui>
|
||||||
|
|
@ -77,76 +37,4 @@
|
||||||
<options>
|
<options>
|
||||||
<listenAddress>tcp://{{ syncthing_listen_address }}:{{ syncthing_protocol_port }}</listenAddress>
|
<listenAddress>tcp://{{ syncthing_listen_address }}:{{ syncthing_protocol_port }}</listenAddress>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<defaults>
|
|
||||||
<folder
|
|
||||||
id=""
|
|
||||||
label=""
|
|
||||||
path="~"
|
|
||||||
type="sendreceive"
|
|
||||||
rescanIntervalS="3600"
|
|
||||||
fsWatcherEnabled="true"
|
|
||||||
fsWatcherDelayS="10"
|
|
||||||
fsWatcherTimeoutS="0"
|
|
||||||
ignorePerms="false"
|
|
||||||
autoNormalize="true">
|
|
||||||
|
|
||||||
<filesystemType>basic</filesystemType>
|
|
||||||
|
|
||||||
<device id="S7UKX27-GI7ZTXS-GC6RKUA-7AJGZ44-C6NAYEB-HSKTJQK-KJHU2NO-CWV7EQW" introducedBy="">
|
|
||||||
<encryptionPassword></encryptionPassword>
|
|
||||||
</device>
|
|
||||||
|
|
||||||
<minDiskFree unit="%">1</minDiskFree>
|
|
||||||
|
|
||||||
<versioning>
|
|
||||||
<cleanupIntervalS>3600</cleanupIntervalS>
|
|
||||||
<fsPath></fsPath>
|
|
||||||
<fsType>basic</fsType>
|
|
||||||
</versioning>
|
|
||||||
|
|
||||||
<copiers>0</copiers>
|
|
||||||
<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
|
|
||||||
<hashers>0</hashers>
|
|
||||||
<order>random</order>
|
|
||||||
<ignoreDelete>false</ignoreDelete>
|
|
||||||
<scanProgressIntervalS>0</scanProgressIntervalS>
|
|
||||||
<pullerPauseS>0</pullerPauseS>
|
|
||||||
<maxConflicts>10</maxConflicts>
|
|
||||||
<disableSparseFiles>false</disableSparseFiles>
|
|
||||||
<disableTempIndexes>false</disableTempIndexes>
|
|
||||||
<paused>false</paused>
|
|
||||||
<weakHashThresholdPct>25</weakHashThresholdPct>
|
|
||||||
<markerName>.stfolder</markerName>
|
|
||||||
<copyOwnershipFromParent>false</copyOwnershipFromParent>
|
|
||||||
<modTimeWindowS>0</modTimeWindowS>
|
|
||||||
<maxConcurrentWrites>2</maxConcurrentWrites>
|
|
||||||
<disableFsync>false</disableFsync>
|
|
||||||
<blockPullOrder>standard</blockPullOrder>
|
|
||||||
<copyRangeMethod>standard</copyRangeMethod>
|
|
||||||
<caseSensitiveFS>false</caseSensitiveFS>
|
|
||||||
<junctionsAsDirs>false</junctionsAsDirs>
|
|
||||||
</folder>
|
|
||||||
|
|
||||||
<device
|
|
||||||
id=""
|
|
||||||
compression="metadata"
|
|
||||||
introducer="false"
|
|
||||||
skipIntroductionRemovals="false"
|
|
||||||
introducedBy="">
|
|
||||||
<address>dynamic</address>
|
|
||||||
<paused>false</paused>
|
|
||||||
<autoAcceptFolders>false</autoAcceptFolders>
|
|
||||||
<maxSendKbps>0</maxSendKbps>
|
|
||||||
<maxRecvKbps>0</maxRecvKbps>
|
|
||||||
<maxRequestKiB>0</maxRequestKiB>
|
|
||||||
<untrusted>false</untrusted>
|
|
||||||
<remoteGUIPort>0</remoteGUIPort>
|
|
||||||
<numConnections>0</numConnections>
|
|
||||||
</device>
|
|
||||||
|
|
||||||
<ignores>
|
|
||||||
<line>(?d).DS_Store</line>
|
|
||||||
</ignores>
|
|
||||||
</defaults>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ networks:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
syncthing:
|
syncthing:
|
||||||
image: syncthing/syncthing
|
image: {{ syncthing_image_tag }}
|
||||||
container_name: syncthing
|
container_name: syncthing
|
||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue