|
@@ -20,16 +20,22 @@
|
|
|
warn: false
|
|
|
notify: Syncthing restarted
|
|
|
|
|
|
-- name: Syncthing password protected
|
|
|
+- name: Syncthing password protected user
|
|
|
ansible.builtin.lineinfile:
|
|
|
path: /usr/local/etc/syncthing/config.xml
|
|
|
insertafter: "^ <address>0.0.0.0:8384</address>"
|
|
|
line: " <user>admin</user>"
|
|
|
notify: Syncthing restarted
|
|
|
|
|
|
-- name: Syncthing password protected
|
|
|
+- name: Syncthing password protected pass
|
|
|
ansible.builtin.lineinfile:
|
|
|
path: /usr/local/etc/syncthing/config.xml
|
|
|
insertafter: "^ <address>0.0.0.0:8384</address>"
|
|
|
line: " <password>{{ syncthing_admin_pass }}</password>"
|
|
|
notify: Syncthing restarted
|
|
|
+
|
|
|
+- name: Syncthing disable fsWatcher
|
|
|
+ shell:
|
|
|
+ cmd: 'sed -i -e ''/^ <folder/s/fsWatcherEnabled="true"/fsWatcherEnabled="false'' /usr/local/etc/syncthing/config.xml'
|
|
|
+ warn: false
|
|
|
+ notify: Syncthing restarted
|