32 lines
930 B
YAML
32 lines
930 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/keys/Amazon_RSA.pub"
|
|
private: no
|
|
- name: aws_region
|
|
prompt: AWS Region to use for instance
|
|
default: "eu-central-1"
|
|
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-]+\\.', '') }}"
|
|
roles:
|
|
- aws_graviton_nano
|
|
|
|
- name: include playbook for pihole#
|
|
import_playbook: headscale-server.yml
|
|
|
|
#- name: include playbook for pihole#
|
|
# import_playbook: pihole.yml
|
|
|
|
#- name: include playbook for wireguard server
|
|
# import_playbook: wireguard_pihole_only.yml
|