wg-aws/create_aws_wireguard_server.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2020-12-02 16:04:55 +01:00
---
# Provisioning of a graviton server using aws spot instance
2020-12-02 18:11:18 +01:00
- name: provisions a graviton server as aws spot instance
hosts: localhost
connection: local
2020-12-02 16:04:55 +01:00
vars_prompt:
- name: ssh_pub_key_file
prompt: Location of your public ssh key
2021-11-22 12:02:37 +01:00
default: "~/.ssh/keys/Amazon_RSA.pub"
private: no
2020-12-02 16:04:55 +01:00
- name: aws_region
2021-11-22 12:02:37 +01:00
prompt: AWS Region to use for instance
default: "eu-central-1"
private: no
2020-12-02 16:04:55 +01:00
- name: aws_ami
2020-12-02 18:11:18 +01:00
prompt: Disk image to use for instance (default is debian buster arm64)
default: "ami-0e70ab85b58b23a77"
private: no
2020-12-02 16:04:55 +01:00
- name: aws_type
prompt: Instance type to request
default: "t4g.nano"
private: no
- name: dns_name
prompt: Which hostname shall be registered for the host (Empty = no dns, Zone needs to be route53 managed)?
default: ""
private: no
vars:
dns_zone_name: "{{ dns_name | regex_replace('^[\\w-]+\\.', '') }}"
ansible_python_interpreter: /usr/bin/python3
2020-12-02 16:04:55 +01:00
roles:
- aws_graviton_nano_spot
2020-12-02 18:11:18 +01:00
- name: include playbook for pihole
import_playbook: pihole.yml
<<<<<<< HEAD
2020-12-27 14:25:20 +01:00
- name: Include playbook to install wireguard
import_playbook: wireguard.yml
=======
- name: include playbook for wireguard server
import_playbook: wireguard_pihole_only.yml
>>>>>>> 268d550 (Checkin der ewig schon herumliegenden Daten, keine Ahnung mehr was ich)