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= PublicKey = /A0WduzRrt/LwKmGm6lq/+TS/1gBekU86FSdhvUo82M=
AllowedIPs = 10.11.19.4 AllowedIPs = 10.11.19.4
#Work
[Peer] [Peer]
PublicKey = eEHA7CSOR5nha9w4SCB+tOXcuCxgkxIXtNU3xB7wZn4= PublicKey = eEHA7CSOR5nha9w4SCB+tOXcuCxgkxIXtNU3xB7wZn4=
AllowedIPs = 10.11.19.5/32 AllowedIPs = 10.11.19.5/32

View File

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

View File

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

View File

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