dest:={{ global_wireguard_configuration_link_name }} peer_files:=$(wildcard peers/*) ${dest}/wireguard.cfg: main.cfg ${peer_files} cat $^ | sed '0,//{s##'"$$(cat {{ wireguard_private_key | quote }})"'#}' > "$@" chown root:root "$@" chmod u=rw,g=r,o= "$@"