Commit 0c1a5c9d authored by nanahira's avatar nanahira

flush script

parent f66d37a7
#!/bin/bash
INTERFACE=$1
cd ansible
ansible wg -m shell -a "echo -e \"flush interface ${INTERFACE}\\nquit\" | nc ::1 33123"
ansible wg -m systemd -b -a "name=wg-quick@${INTERFACE} state=stopped enabled=false"
cd ..
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment