Moved Wireguard server to wireguard container

This commit is contained in:
Justus Grunow 2024-12-17 06:39:52 -05:00
parent 9815713717
commit a7948364cd
4 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@ ListenPort = 51820
PublicKey = /A0WduzRrt/LwKmGm6lq/+TS/1gBekU86FSdhvUo82M=
AllowedIPs = 10.11.19.4
#Work
[Peer]
PublicKey = eEHA7CSOR5nha9w4SCB+tOXcuCxgkxIXtNU3xB7wZn4=
AllowedIPs = 10.11.19.5/32

View File

@ -107,8 +107,8 @@
backup: true
- name: Setup docker-int wireguard
hosts: docker-int
- name: Setup Wireguard wireguard
hosts: wireguard
vars:
tags:
- wireguard

View File

@ -23,7 +23,7 @@ docker:
wireguard:
hosts:
docker-int:
wireguard:
external_access:
hosts:

View File

@ -7,6 +7,7 @@
ansible.builtin.package:
name: wireguard
state: present
update_cache: true
- name: Shutdown Wireguard (remove iptables rules)
ansible.builtin.shell: wg-quick down wg0
ignore_errors: true