22 lines
471 B
YAML
22 lines
471 B
YAML
---
|
|
# 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
|
|
vars:
|
|
vpn_network: '10.100.100'
|
|
vpn_port: '58172'
|
|
vpn_clients: 1
|
|
roles:
|
|
- wireguard_server
|