wg-aws/wireguard.yml
2020-12-02 18:11:18 +01:00

24 lines
493 B
YAML

---
- name: set defaults
vars:
vpn_network: '10.100.100'
vpn_port: '58172'
vpn_clients: 1
# manually prepare inventory
- name: add host
hosts: localhost
tasks:
- name: manually add host
add_host:
hostname: "illevpn.appments.net"
groupname: launched
# Provisioning of a graviton server using aws spot instance
- name: Install wireguard server on launched hosts
hosts: launched
remote_user: admin
become: yes
roles:
- wireguard_server