Skip to content

Instantly share code, notes, and snippets.

View Kubernyx-sec's full-sized avatar

Kubernyx Kubernyx-sec

View GitHub Profile
@Kubernyx-sec
Kubernyx-sec / wg-vps-ansible-verify-patch.sh
Created April 29, 2026 18:46
WG VPS Ansible verify.yml fix — env vars instead of inline Jinja in shell body
#!/usr/bin/env bash
# wg-vps-ansible-verify-patch.sh
# Fixes verify.yml synthetic peer test: removes Jinja-inside-shell so Ansible's
# argument parser stops choking on it. Values are passed via environment vars.
# Run on the VPS:
# cd ~/wg-vps-ansible && sudo bash wg-vps-ansible-verify-patch.sh
set -euo pipefail
if [[ ! -f verify.yml ]]; then
echo "ERROR: run this from inside the wg-vps-ansible directory" >&2