ignore joe backup files
print out ip of server created do not register dns name delete playbook for installation only
This commit is contained in:
parent
542837d683
commit
d132e3a9ee
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.terraform
|
.terraform
|
||||||
wireguard_profiles/*
|
wireguard_profiles/*
|
||||||
|
*~
|
||||||
|
@ -16,12 +16,6 @@
|
|||||||
- name: aws_type
|
- name: aws_type
|
||||||
prompt: Instance type to request
|
prompt: Instance type to request
|
||||||
default: "t4g.nano"
|
default: "t4g.nano"
|
||||||
- name: dns_zone_name
|
|
||||||
prompt: Route53 zone in which nameserver entry is registered
|
|
||||||
default: "appments.net"
|
|
||||||
- name: dns_host_name
|
|
||||||
prompt: Hostname that is registered in Route53
|
|
||||||
default: "illevpn"
|
|
||||||
roles:
|
roles:
|
||||||
- aws_graviton_nano_spot
|
- aws_graviton_nano_spot
|
||||||
|
|
||||||
|
@ -44,13 +44,7 @@
|
|||||||
groupname: launched
|
groupname: launched
|
||||||
loop: "{{ graviton.instances }}"
|
loop: "{{ graviton.instances }}"
|
||||||
|
|
||||||
- name: generate route53 dns entry for the instance
|
- name: Print public IP of this server
|
||||||
route53:
|
debug:
|
||||||
command: create
|
msg: Your instance has th public IP address {{ item.public_ip }}
|
||||||
overwrite: yes
|
loop: "{{ graviton.instances }}"
|
||||||
zone: "{{ dns_zone_name }}"
|
|
||||||
record: "{{ dns_host_name }}.{{ dns_zone_name }}"
|
|
||||||
type: CNAME
|
|
||||||
ttl: 60
|
|
||||||
value: "{{ item.public_dns_name }}"
|
|
||||||
loop: "{{ graviton.instances }}"
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
# 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
|
|
Loading…
x
Reference in New Issue
Block a user