fix readme

This commit is contained in:
Mohammed Naser 2019-04-04 22:39:17 -04:00
parent 04b5d45794
commit 16db28d497

View File

@ -11,35 +11,37 @@ your machine. It does not manage that for you.
## Usage ## Usage
This example below should be pretty self-explanitory. This example below should be pretty self-explanitory.
--- ```yaml
- hosts: vpn1.internal ---
roles: - hosts: vpn1.internal
- wireguard roles:
vars: - wireguard
wireguard_links: vars:
- name: wg0 wireguard_links:
address: 10.0.0.1 - name: wg0
port: 51820 address: 10.0.0.1
private_key: eCpvWOe8zI0HCj/KjK3TZP71kd+glDxvDo5JaQhw3mw= port: 51820
post_up: iptables ... private_key: eCpvWOe8zI0HCj/KjK3TZP71kd+glDxvDo5JaQhw3mw=
post_down: iptables ... post_up: iptables ...
peers: post_down: iptables ...
- public_key: UB9Lhk0JgwAPFD8F3k3Dq9iS7r/jLD+oYMX98T+fmGw= peers:
endpoint: vpn2.internal:51820 - public_key: UB9Lhk0JgwAPFD8F3k3Dq9iS7r/jLD+oYMX98T+fmGw=
allowed_ips: 10.0.0.2 endpoint: vpn2.internal:51820
allowed_ips: 10.0.0.2
- hosts: vpn2.internal - hosts: vpn2.internal
roles: roles:
- wireguard - wireguard
vars: vars:
wireguard_links: wireguard_links:
- name: wg0 - name: wg0
address: 10.0.0.2 address: 10.0.0.2
port: 51820 port: 51820
private_key: aIPcdRd6ncwRa+DJLaiq0Jmbvx1FjtLnWE2EApgcr2E= private_key: aIPcdRd6ncwRa+DJLaiq0Jmbvx1FjtLnWE2EApgcr2E=
post_up: iptables ... post_up: iptables ...
post_down: iptables ... post_down: iptables ...
peers: peers:
- public_key: E/MU5hNb1mQ55ww0H0luxigNTXNNo/x49MRm5AcHLSI= - public_key: E/MU5hNb1mQ55ww0H0luxigNTXNNo/x49MRm5AcHLSI=
endpoint: vpn1.internal:51820 endpoint: vpn1.internal:51820
allowed_ips: 10.0.0.1 allowed_ips: 10.0.0.1
```