From 2ea3fad73c8ead304c315c19797c55e05458bdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Violet=20Truchse=C3=9F?= Date: Wed, 20 Nov 2024 18:46:23 +0100 Subject: [PATCH] added wireguard submodule and snapper conf for boot configured SSH key and wireguard added libreofffice removed prefixlength from wg_ips updated wg-roadwarrior script added ip forwarding to wireguard moved inventory into private repo --- .gitmodules | 6 ++++++ debian-sway.yml | 16 ++++++++++++++++ hosts.yml | 5 ----- packages.yml | 1 + private | 1 + wg-roadwarrior | 1 + 6 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .gitmodules delete mode 100644 hosts.yml create mode 160000 private create mode 160000 wg-roadwarrior diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4e19ce2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "wg-roadwarrior"] + path = wg-roadwarrior + url = ssh://git@git.v-tr.org:2020/violet/wg-roadwarrior.git +[submodule "private"] + path = private + url = ssh://git@git.v-tr.org:2020/violet/ansible-private.git diff --git a/debian-sway.yml b/debian-sway.yml index bd76097..634dba0 100644 --- a/debian-sway.yml +++ b/debian-sway.yml @@ -103,18 +103,34 @@ command: cmd: snapper -c home create-config /home creates: /etc/snapper/configs/home + - name: setup snapper config for boot filesystem + command: + cmd: snapper -c boot create-config /boot + creates: /etc/snapper/configs/boot - name: disable timed root snapshots lineinfile: path: /etc/snapper/configs/root regexp: "TIMELINE_CREATE" line: 'TIMELINE_CREATE="no"' notify: restart snapper + - name: disable timed boot snapshots + lineinfile: + path: /etc/snapper/configs/boot + regexp: "TIMELINE_CREATE" + line: 'TIMELINE_CREATE="no"' + notify: restart snapper - name: set root snapshot max numbers lineinfile: path: /etc/snapper/configs/root regexp: "NUMBER_LIMIT" line: 'NUMBER_LIMIT="8"' notify: restart snapper + - name: set boot snapshot max numbers + lineinfile: + path: /etc/snapper/configs/boot + regexp: "NUMBER_LIMIT" + line: 'NUMBER_LIMIT="8"' + notify: restart snapper - name: set user permissions for home snapshots lineinfile: path: /etc/snapper/configs/home diff --git a/hosts.yml b/hosts.yml deleted file mode 100644 index 0d195e7..0000000 --- a/hosts.yml +++ /dev/null @@ -1,5 +0,0 @@ -ungrouped: - hosts: - saljut.v-tr.org: - ssh_keys: - - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGMRYoZA25jBiHuqBqTtnC6E/dxmKz3p5FzMzDFKJLd+ vi@gridlock' diff --git a/packages.yml b/packages.yml index a2e209c..bffc40b 100644 --- a/packages.yml +++ b/packages.yml @@ -20,6 +20,7 @@ - borgbackup - gimp - neofetch + - libreoffice state: present - name: install flatpaks flatpak: diff --git a/private b/private new file mode 160000 index 0000000..8a81ce6 --- /dev/null +++ b/private @@ -0,0 +1 @@ +Subproject commit 8a81ce674b4794f10f63b9eb3f5c1b096fc3f543 diff --git a/wg-roadwarrior b/wg-roadwarrior new file mode 160000 index 0000000..c7e857a --- /dev/null +++ b/wg-roadwarrior @@ -0,0 +1 @@ +Subproject commit c7e857aa4e79d776755e72e5887987d646ded56e