From d132e3a9ee8d6f52b6c13ebd3a14ea9f480c699f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=A4rkle?= Date: Wed, 2 Dec 2020 22:58:17 +0100 Subject: [PATCH] ignore joe backup files print out ip of server created do not register dns name delete playbook for installation only --- .gitignore | 3 ++- gravitoninstance.yml | 6 ------ roles/aws_graviton_nano_spot/tasks/main.yml | 14 ++++---------- wireguard.yml | 21 --------------------- 4 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 wireguard.yml diff --git a/.gitignore b/.gitignore index 1e55d6e..0b1677b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .terraform -wireguard_profiles/* \ No newline at end of file +wireguard_profiles/* +*~ diff --git a/gravitoninstance.yml b/gravitoninstance.yml index a913fdc..cac59ba 100644 --- a/gravitoninstance.yml +++ b/gravitoninstance.yml @@ -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 diff --git a/roles/aws_graviton_nano_spot/tasks/main.yml b/roles/aws_graviton_nano_spot/tasks/main.yml index e1d9b39..005555f 100644 --- a/roles/aws_graviton_nano_spot/tasks/main.yml +++ b/roles/aws_graviton_nano_spot/tasks/main.yml @@ -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 }}" \ No newline at end of file +- name: Print public IP of this server + debug: + msg: Your instance has th public IP address {{ item.public_ip }} + loop: "{{ graviton.instances }}" diff --git a/wireguard.yml b/wireguard.yml deleted file mode 100644 index e722c7d..0000000 --- a/wireguard.yml +++ /dev/null @@ -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