fix typo, add some comment on inventory
This commit is contained in:
parent
2092bd06cb
commit
8e133df777
|
@ -249,7 +249,7 @@ Example Playbook
|
||||||
- wireguard
|
- wireguard
|
||||||
```
|
```
|
||||||
|
|
||||||
Example Inventory usint 2 different WireGuard interfaces on host multi
|
Example Inventory using 2 different WireGuard interfaces on host multi
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
This is a complex example using yaml inventory format
|
This is a complex example using yaml inventory format
|
||||||
|
@ -270,7 +270,7 @@ vpn1:
|
||||||
wireguard_postdown: "iptables -t nat -D POSTROUTING -o ens12 -j MASQUERADE"
|
wireguard_postdown: "iptables -t nat -D POSTROUTING -o ens12 -j MASQUERADE"
|
||||||
vpn2:
|
vpn2:
|
||||||
hosts:
|
hosts:
|
||||||
multi-wg1:
|
multi-wg1: # use a different name, and define ansible_host, to avoid mixing of vars without needing to prefix vars with interface name
|
||||||
ansible_host: multi
|
ansible_host: multi
|
||||||
wireguard_interface: wg1
|
wireguard_interface: wg1
|
||||||
wireguard_port: 51821 # when using several interface on one host, we must use different ports
|
wireguard_port: 51821 # when using several interface on one host, we must use different ports
|
||||||
|
|
Reference in a new issue