Compare commits

...

3 commits

Author SHA1 Message Date
7beeb4b75a Apply config formatting 2025-03-13 22:45:33 +01:00
fd2dc88044 Update server ID 2025-03-13 22:45:15 +01:00
34662f37ec Use syncthing prefix for id's 2025-03-13 21:14:05 +01:00
2 changed files with 15 additions and 15 deletions

View file

@ -1,18 +1,18 @@
<!-- {{ ansible_managed }} --> <!-- {{ ansible_managed }} -->
<configuration version="{{ syncthing_config_version }}"> <configuration version="{{ syncthing_config_version }}">
{% for folder in syncthing_folders %} {% for folder in syncthing_folders -%}
<folder <folder
id="{{ folder.id }}" id="{{ folder.id }}"
label="{{ folder.label }}" label="{{ folder.label }}"
path="{{ folder.path }}" path="{{ folder.path }}"
type="{{ folder.type }}"> type="{{ folder.type }}">
{% for id in folder.devices %} {% for id in folder.devices -%}
<device id="{{ id }}"> <device id="{{ id }}">
<encryptionPassword></encryptionPassword> <encryptionPassword></encryptionPassword>
</device> </device>
{% endfor %} {%- endfor %}
<filesystemType>basic</filesystemType> <filesystemType>basic</filesystemType>
<minDiskFree unit="%">20</minDiskFree> <minDiskFree unit="%">20</minDiskFree>
@ -48,9 +48,9 @@
<syncXattrs>false</syncXattrs> <syncXattrs>false</syncXattrs>
<sendXattrs>false</sendXattrs> <sendXattrs>false</sendXattrs>
</folder> </folder>
{% endfor %} {%- endfor %}
{% for device in syncthing_devices %} {% for device in syncthing_devices -%}
<device <device
id="{{ device.id }}" id="{{ device.id }}"
name="{{ device.name }}" name="{{ device.name }}"
@ -65,7 +65,7 @@
<remoteGUIPort>0</remoteGUIPort> <remoteGUIPort>0</remoteGUIPort>
<numConnections>0</numConnections> <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>

View file

@ -22,15 +22,15 @@ syncthing_gui_pass: !vault |
syncthing_devices: syncthing_devices:
- name: Desktop - name: Desktop
id: &desktop_id CSDXP5E-4UBNC36-32EHTPK-L6Y6JVZ-HQHM42R-FJXN2LI-2MTYRFX-3ZZPUQN id: &syncthing_desktop_id CSDXP5E-4UBNC36-32EHTPK-L6Y6JVZ-HQHM42R-FJXN2LI-2MTYRFX-3ZZPUQN
address: tcp://10.0.0.3:22000 address: tcp://10.0.0.3:22000
- name: Fudiggity - name: Fudiggity
id: &host_id PGSOVGQ-VOHWV77-F7DFFQO-JZKTWWG-Z2XU2DE-N4ATK5U-F7MXKKM-TFSROQJ id: &syncthing_server_id ZM5JO5E-UYU6XUI-P25TLIP-TLPQD7J-NSPSYZS-A5OOYST-J62ICAQ-Y2A5YQV
address: dynamic address: dynamic
- name: XPS15 - name: XPS15
id: &xps_id 2AC4LRC-YIJDWWK-YCOEZLT-4OWWC2E-7VEZQQB-F3AAPZR-HU75FE4-PGWWXQH id: &syncthing_xps_id 2AC4LRC-YIJDWWK-YCOEZLT-4OWWC2E-7VEZQQB-F3AAPZR-HU75FE4-PGWWXQH
address: tcp://10.0.0.2:22000 address: tcp://10.0.0.2:22000
syncthing_folders: syncthing_folders:
@ -40,9 +40,9 @@ syncthing_folders:
source_path: '{{ ansible_env.HOME }}/files/sync/' source_path: '{{ ansible_env.HOME }}/files/sync/'
type: sendreceive type: sendreceive
devices: devices:
- *desktop_id - *syncthing_desktop_id
- *host_id - *syncthing_server_id
- *xps_id - *syncthing_xps_id
- id: pictures - id: pictures
label: Pictures label: Pictures
@ -50,6 +50,6 @@ syncthing_folders:
source_path: '{{ ansible_env.HOME }}/files/pictures/' source_path: '{{ ansible_env.HOME }}/files/pictures/'
type: sendreceive type: sendreceive
devices: devices:
- *desktop_id - *syncthing_desktop_id
- *host_id - *syncthing_server_id
- *xps_id - *syncthing_xps_id