diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml
index 1c18cd5..02c0dd1 100644
--- a/group_vars/all/main.yml
+++ b/group_vars/all/main.yml
@@ -16,6 +16,7 @@ packages:
xdg_config_dir: "{{ ansible_env.HOME }}/.config"
xdg_script_dir: "{{ ansible_env.HOME }}/.local/bin"
+xdg_state_dir: "{{ ansible_env.HOME }}/.local/state"
modprobe_templates: []
mkinitcpio_templates: []
diff --git a/host_vars/desktop/syncthing.yml b/host_vars/desktop/syncthing.yml
index 9924820..0fad759 100644
--- a/host_vars/desktop/syncthing.yml
+++ b/host_vars/desktop/syncthing.yml
@@ -3,15 +3,7 @@ syncthing_listen_address: "0.0.0.0"
syncthing_protocol_port: 22000
syncthing_gui_port: 8384
-syncthing_config_version: 37
-syncthing_api_key: !vault |
- $ANSIBLE_VAULT;1.1;AES256
- 39643534383666343331666336356662333165633032356532323730316535616363393330376263
- 6164323430343961646635323739373363623764646361360a666566363736323739313533323562
- 34653032646230313063613265313836383033353336333461376432363530633632313234323733
- 6162646332623837370a646537336139336361666336363861353030633136373063333433643435
- 64666465356566313263376330643664313266646139663433663366316232613562663863366334
- 3061663839656563353663373135393233653130383735366538
+syncthing_config_version: 51
syncthing_devices:
- name: Desktop
diff --git a/host_vars/xps/syncthing.yml b/host_vars/xps/syncthing.yml
index 01f40b3..e61f412 100644
--- a/host_vars/xps/syncthing.yml
+++ b/host_vars/xps/syncthing.yml
@@ -3,15 +3,7 @@ syncthing_listen_address: "0.0.0.0"
syncthing_protocol_port: 22000
syncthing_gui_port: 8384
-syncthing_config_version: 37
-syncthing_api_key: !vault |
- $ANSIBLE_VAULT;1.1;AES256
- 35346637623066636261633331343438313736356137633466306633613563343630363565643763
- 6631623461663330633537386539376435356338393537620a666234373932636162653830316339
- 65336339383630313837323137613137303862613061326131313437316637383637666638313235
- 6463333235646536620a316163666431323530353330356633393035663933613761313031656561
- 66333431636134366466373533616438326230323965333763316336393764303737663461363636
- 3061373832313462623765353130616237343966333332623262
+syncthing_config_version: 51
syncthing_devices:
- name: Desktop
diff --git a/tasks/syncthing.yml b/tasks/syncthing.yml
index 409c53b..95a4a18 100644
--- a/tasks/syncthing.yml
+++ b/tasks/syncthing.yml
@@ -1,7 +1,7 @@
---
- name: Create configuration dir
ansible.builtin.file:
- path: "{{ xdg_config_dir }}/syncthing"
+ path: "{{ xdg_state_dir }}/syncthing"
state: directory
mode: "0755"
@@ -14,6 +14,6 @@
- name: Copy configuration file
ansible.builtin.template:
src: "templates/syncthing/config.j2"
- dest: "{{ xdg_config_dir }}/syncthing/config.xml"
+ dest: "{{ xdg_state_dir }}/syncthing/config.xml"
mode: "0640"
- notify: start syncthing
+ notify: Start syncthing
diff --git a/templates/syncthing/config.j2 b/templates/syncthing/config.j2
index c48c0d8..372a48a 100644
--- a/templates/syncthing/config.j2
+++ b/templates/syncthing/config.j2
@@ -14,39 +14,7 @@
{%- endfor %}
-