Tweak containerization ansible config and fixup container wireguard config

This commit is contained in:
KemoNine 2020-08-04 22:03:15 +00:00
parent 9fce819860
commit c4198346da
2 changed files with 4 additions and 3 deletions

View file

@ -10,7 +10,8 @@ wg:
frame1:
wireguard_address: 192.168.254.11/32
dispatcher:
wireguard_containerized: true
containerized: true
wireguard_containerized: {{ containerized }}
wireguard_remote_directory: "/opt/wireguard"
wireguard_address: 192.168.254.1/32
wireguard_allowed_ips: "192.168.254.0/24"

View file

@ -8,12 +8,12 @@ fi
_term() {
echo "Caught SIGTERM signal!"
wg-quick down /opt/wireguard/wg0
wg-quick down /opt/wireguard/wg0.conf
}
trap _term SIGTERM
wg-quick up /opt/wireguard/wg0
wg-quick up /opt/wireguard/wg0.conf
sleep infinity &