make target to install wireguard
This commit is contained in:
12
wg.mk
12
wg.mk
@@ -34,3 +34,15 @@ ansible/files/wireguard/wg0.conf: wireguard/wg_peers.txt | ansible/files/wiregua
|
|||||||
cd ansible && ansible-vault view files/wireguard/server_head > files/wireguard/wg0.conf
|
cd ansible && ansible-vault view files/wireguard/server_head > files/wireguard/wg0.conf
|
||||||
cat $< >> $@
|
cat $< >> $@
|
||||||
cd ansible && ansible-vault encrypt files/wireguard/wg0.conf
|
cd ansible && ansible-vault encrypt files/wireguard/wg0.conf
|
||||||
|
|
||||||
|
|
||||||
|
##### Installing Wireguard Client #####
|
||||||
|
|
||||||
|
.PHONY: wg-create
|
||||||
|
wg-create: wireguard/dmz.conf ## Set up wireguard keys (do this before installing)
|
||||||
|
|
||||||
|
.PHONY: wg-install
|
||||||
|
wg-install: /etc/wireguard/dmz.conf ## Install wireguard keys (use sudo)
|
||||||
|
/etc/wireguard/dmz.conf: wireguard/dmz.conf | /bin/wg
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user