parent
482e74378b
commit
4afe109ef0
@ -1,22 +1,19 @@
|
|||||||
- hosts: vpn
|
- name: (local) fill out the rest of the wg0.conf file
|
||||||
remote_user: josiah
|
blockinfile:
|
||||||
gather_facts: false
|
path: /etc/wireguard/wg0.conf
|
||||||
become: yes
|
block: |
|
||||||
|
Address = 10.200.219.2/32, fd86:ea04:1115::2/128
|
||||||
tasks:
|
DNS = 1.1.1.1
|
||||||
- name: (local) fill out the rest of the wg0.conf file
|
|
||||||
blockinfile:
|
|
||||||
path: /etc/wireguard/wg0.conf
|
|
||||||
block: |
|
|
||||||
Address = 10.200.219.2/32, fd86:ea04:1115::2/128
|
|
||||||
DNS = 1.1.1.1
|
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = {{ server_publickey.stdout }}
|
PublicKey = {{ server_publickey.stdout }}
|
||||||
Endpoint = vpn.awful.club:51820
|
Endpoint = vpn.awful.club:51820
|
||||||
AllowedIPs = 0.0.0.0/0
|
AllowedIPs = 0.0.0.0/0
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: (local) bring wg up on local
|
- name: (local) bring wg up on local
|
||||||
shell: wg-quick up wg0
|
shell: wg-quick up wg0
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: yes
|
||||||
|
ignore_errors: True
|
||||||
|
Loading…
Reference in new issue