Compare commits

..

3 commits

5 changed files with 51 additions and 5 deletions

View file

@ -101,3 +101,10 @@
ansible.builtin.systemd:
name: sddm
enabled: false
- name: Restart nftables
become: true
ansible.builtin.systemd:
name: nftables
enabled: true
state: restarted

View file

@ -14,9 +14,9 @@ syncthing_devices:
id: &syncthing_server_id ZM5JO5E-UYU6XUI-P25TLIP-TLPQD7J-NSPSYZS-A5OOYST-J62ICAQ-Y2A5YQV
address: tcp://syncthing.{{ server_domain }}:22000
- name: XPS15
id: &syncthing_xps_id 2AC4LRC-YIJDWWK-YCOEZLT-4OWWC2E-7VEZQQB-F3AAPZR-HU75FE4-PGWWXQH
address: tcp://10.0.0.2:22000
- name: P14
id: &syncthing_p14_id MT7RJP3-R7I233L-ICWRPUY-4BCSXCK-WVBPWQ4-JMVBX4Y-J35GB6G-YDQFHQ3
address: dynamic
syncthing_folders:
- id: default
@ -26,7 +26,7 @@ syncthing_folders:
devices:
- *syncthing_desktop_id
- *syncthing_server_id
- *syncthing_xps_id
- *syncthing_p14_id
- id: pictures
label: Pictures
@ -35,4 +35,4 @@ syncthing_folders:
devices:
- *syncthing_desktop_id
- *syncthing_server_id
- *syncthing_xps_id
- *syncthing_p14_id

View file

@ -0,0 +1,32 @@
---
syncthing_listen_address: "0.0.0.0"
syncthing_protocol_port: 22000
syncthing_gui_port: 8384
syncthing_config_version: 51
syncthing_devices:
- name: Desktop
id: &syncthing_desktop_id CSDXP5E-4UBNC36-32EHTPK-L6Y6JVZ-HQHM42R-FJXN2LI-2MTYRFX-3ZZPUQN
address: dynamic
- name: Fudiggity
id: &syncthing_server_id ZM5JO5E-UYU6XUI-P25TLIP-TLPQD7J-NSPSYZS-A5OOYST-J62ICAQ-Y2A5YQV
address: tcp://syncthing.{{ server_domain }}:22000
syncthing_folders:
- id: default
label: Default
path: "{{ ansible_env.HOME }}/syncthing/default"
type: sendreceive
devices:
- *syncthing_desktop_id
- *syncthing_server_id
- id: pictures
label: Pictures
path: "{{ ansible_env.HOME }}/syncthing/pictures"
type: sendreceive
devices:
- *syncthing_desktop_id
- *syncthing_server_id

View file

@ -20,6 +20,10 @@
ansible.builtin.import_tasks: "tasks/p14.yml"
tags: p14
- name: Syncthing provisioning
ansible.builtin.import_tasks: "tasks/syncthing.yml"
tags: syncthing
handlers:
- name: Import default handlers
ansible.builtin.import_tasks: handlers.yml

View file

@ -25,6 +25,9 @@ table inet filter {
# allow ssh
tcp dport ssh accept
# syncthing
ip saddr 10.0.0.1 tcp dport 22000 accept
}
chain forward {