Add wireguard configs for odo.

This commit is contained in:
Tom Alexander 2022-12-03 17:20:38 -05:00
parent 83f8b2509b
commit b5ffd1e44d
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 4 additions and 9 deletions

2
.gitattributes vendored
View File

@ -1,2 +1,2 @@
cargo_credentials.toml filter=git-crypt diff=git-crypt
wireguard_configs/ filter=git-crypt diff=git-crypt
**/wireguard_configs/** filter=git-crypt diff=git-crypt

View File

@ -50,3 +50,6 @@ efi_dev: /dev/gpt/EFI
sound_default_unit: 5
sway_conf_files:
- launch_gpg
wireguard_directory: odo
enabled_wireguard:
- wgh

View File

@ -13,14 +13,6 @@
group: root
with_fileglob: "files/wireguard_configs/{{ wireguard_directory }}/*.conf"
- name: Enable Wireguard
when: enabled_wireguard is defined
systemd:
enabled: yes
name: "wg-quick@{{ item }}"
daemon_reload: yes
loop: "{{ enabled_wireguard }}"
- name: Enable gateway
when: wireguard_gateway is defined and wireguard_gateway == true
community.general.sysrc: