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:
Stefan Märkle 2020-12-02 22:58:17 +01:00
parent 542837d683
commit d132e3a9ee
4 changed files with 6 additions and 38 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
.terraform
wireguard_profiles/*
wireguard_profiles/*
*~

View File

@ -16,12 +16,6 @@
- name: aws_type
prompt: Instance type to request
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:
- aws_graviton_nano_spot

View File

@ -44,13 +44,7 @@
groupname: launched
loop: "{{ graviton.instances }}"
- name: generate route53 dns entry for the instance
route53:
command: create
overwrite: yes
zone: "{{ dns_zone_name }}"
record: "{{ dns_host_name }}.{{ dns_zone_name }}"
type: CNAME
ttl: 60
value: "{{ item.public_dns_name }}"
loop: "{{ graviton.instances }}"
- name: Print public IP of this server
debug:
msg: Your instance has th public IP address {{ item.public_ip }}
loop: "{{ graviton.instances }}"

View File

@ -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