24 lines
493 B
YAML
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
|