--- - name: Syncthing installed community.general.pkgng: name: syncthing state: latest - name: Syncthing enabled shell: sysrc syncthing_enable="YES" - name: Syncthing group set to wheel shell: sysrc syncthing_group="wheel" - name: Syncthing user set to root shell: sysrc syncthing_user="root" - name: Ensure syncthing is running service: name=syncthing state=started - name: Syncthing enabled on all interfaces shell: cmd: "sed -i -e '/^
127.0.0.1:8384/s/127.0.0.1/0.0.0.0/' /usr/local/etc/syncthing/config.xml" notify: Syncthing restarted - name: Syncthing TLS enabled shell: cmd: 'sed -i -e ''/^ 0.0.0.0:8384
" line: " admin" notify: Syncthing restarted - name: Syncthing password protected pass ansible.builtin.lineinfile: path: /usr/local/etc/syncthing/config.xml insertafter: "^
0.0.0.0:8384
" line: " {{ syncthing_admin_pass }}" notify: Syncthing restarted - name: Syncthing disable fsWatcher shell: cmd: 'sed -i -e ''s/fsWatcherEnabled="true"/fsWatcherEnabled="false"/'' /usr/local/etc/syncthing/config.xml' notify: Syncthing restarted - name: Ensure syncthing is restarted service: name=syncthing state=restarted