Updated Using WireGuard Easy with Ansible (markdown)

CTPEJIKuH
2024-05-12 23:05:00 +09:00
parent 91fac51e47
commit 210a4d5da9
+11 -6
@@ -31,12 +31,12 @@ all:
wireguard_addresses: wireguard_addresses:
hosts: hosts:
my-vm: your-vm:
ansible_host: 123.45.67.89 ansible_host: 123.45.67.89
``` ```
Instead of 123.45.67.89, you need to specify the IP of your virtual machine. Instead of your-vm, specify the name of your virtual machine.
Instead of my-vm, specify the name of your virtual machine. Instead of 123.45.67.89, you need to specify the IP of your virtual machine.
In the inventories/prod/group_vars/all.yml file, set the password for the Wireguard web interface: In the inventories/prod/group_vars/all.yml file, set the password for the Wireguard web interface:
```bash ```bash
@@ -51,9 +51,14 @@ The playbook also provides backup functionality.
*** ***
# Entry Point # Entry Point
At the end of the Ansible run, a message like the following will be displayed: At the end of the Ansible run, a message like the following will be displayed your UI address:
UI address: http://123.45.67.890:51821
This will be the web interface. ```
TASK [wireguard : Output UI address] *******************************************************************************
ok: [your-vm] => {
"msg": "UI address: http://123.45.67.89:51821"
}
```
*** ***