Skip to content

Instantly share code, notes, and snippets.

@jrd281
jrd281 / AlexaEmailClient.java
Created September 28, 2018 20:49
AlexaEmailClient
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
# Because the public ip of the NGinx server
# is tossed and replaced with the elastic IP
# we have to use the 'nginx_elastic_ip'
# role
---
- hosts: nginx_elastic_ip
become: yes
vars:
website_server_fqdn: 127.0.0.1
dev_server_fqdn: 127.0.0.1