Moved Wireguard server to wireguard container
This commit is contained in:
parent
9815713717
commit
a7948364cd
@ -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
|
||||||
@ -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
|
||||||
|
|||||||
@ -23,7 +23,7 @@ docker:
|
|||||||
|
|
||||||
wireguard:
|
wireguard:
|
||||||
hosts:
|
hosts:
|
||||||
docker-int:
|
wireguard:
|
||||||
|
|
||||||
external_access:
|
external_access:
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user