Commit 5579f065 authored by nanahira's avatar nanahira

fix

parent ccd83247
#!/bin/bash #!/bin/bash
INTERFACE=$1 INTERFACE=$1
COMMAND="flush interface ${INTERFACE}\nquit" COMMAND="flush interface ${INTERFACE}\nquit"
COMMAND_BASE64=$(echo "$COMMAND" | base64 -w 0) COMMAND_BASE64=$(echo -e "$COMMAND" | base64 -w 0)
cd ansible cd ansible
ansible wg -m shell -a "echo $COMMAND_BASE64 | base64 --decode | nc ::1 33123" ansible wg -m shell -a "echo $COMMAND_BASE64 | base64 --decode | nc ::1 33123"
......
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