wg-aws/create_aws_wireguard_server.yml
Stefan Märkle da392a9c37 Bugfixes: String nach int in jinja2 muss explizit gemacht werden
Bugfixes: systemctl explizit aufrufen statt ansible modul verwenden startet das wg0 zuverlässig
2020-12-03 00:09:24 +01:00

40 lines
1002 B
YAML

---
# Provisioning of a graviton server using aws spot instance
- name: provisions a graviton server as aws spot instance
hosts: localhost
connection: local
vars_prompt:
- name: ssh_pub_key_file
prompt: Location of your public ssh key
default: "~/.ssh/id_rsa.pub"
private: no
- name: aws_region
prompt: AWS Region to use for instaance
default: "us-east-1"
private: no
- name: aws_ami
prompt: Disk image to use for instance (default is debian buster arm64)
default: "ami-057796a93302d0b14"
private: no
- name: aws_type
prompt: Instance type to request
default: "t4g.nano"
private: no
roles:
- aws_graviton_nano_spot
- name: Install wireguard server on launched hosts
hosts: launched
remote_user: admin
become: true
vars_prompt:
- name: vpn_clients
prompt: Number of vpn clients to be generated
default: 1
private: no
vars:
vpn_network: '10.100.100'
vpn_port: '58172'
roles:
- wireguard_server