Tweak containerization ansible config and fixup container wireguard config
This commit is contained in:
parent
9fce819860
commit
c4198346da
|
@ -10,7 +10,8 @@ wg:
|
||||||
frame1:
|
frame1:
|
||||||
wireguard_address: 192.168.254.11/32
|
wireguard_address: 192.168.254.11/32
|
||||||
dispatcher:
|
dispatcher:
|
||||||
wireguard_containerized: true
|
containerized: true
|
||||||
|
wireguard_containerized: {{ containerized }}
|
||||||
wireguard_remote_directory: "/opt/wireguard"
|
wireguard_remote_directory: "/opt/wireguard"
|
||||||
wireguard_address: 192.168.254.1/32
|
wireguard_address: 192.168.254.1/32
|
||||||
wireguard_allowed_ips: "192.168.254.0/24"
|
wireguard_allowed_ips: "192.168.254.0/24"
|
||||||
|
|
|
@ -8,12 +8,12 @@ fi
|
||||||
|
|
||||||
_term() {
|
_term() {
|
||||||
echo "Caught SIGTERM signal!"
|
echo "Caught SIGTERM signal!"
|
||||||
wg-quick down /opt/wireguard/wg0
|
wg-quick down /opt/wireguard/wg0.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
trap _term SIGTERM
|
trap _term SIGTERM
|
||||||
|
|
||||||
wg-quick up /opt/wireguard/wg0
|
wg-quick up /opt/wireguard/wg0.conf
|
||||||
|
|
||||||
sleep infinity &
|
sleep infinity &
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue