In this post I’d like to run through how to get going with an Elastic Load Balancer(ELB) within AWS via Ansible. Load balancing your web application is a simple step forward in scaling your request capacity as well as helping out with rolling deploys and promoting/retiring servers in the future. It’s incredibly simple and straightforward to get something setup with Ansible which leaves you with an easy to understand orchestration playbook.
To make context switching easier it’s always a good idea to simplify project specifics with simple
bin scripts. They don’t need to do everything but they should at least be a good jump start to get the project going. Here’s a few simples ones that I’ve been using to get my local Ansible and Vagrant setup configured. I utilize Vagrant and Ansible for most of my local development environments.
If you share your Vagrantfile and Vagrant provisioning files amongst team members for your local development environment it’s nice to be able to keep some of the options in your Vagrantfile flexible. Settings like memory usage, shared folder locations, and IP addresses. There’s a Vagrant plugin that allows you to do this and it’s really simple to setup.
So I got this drone and it’s amazing.
There’s a recently discovered vulnerability in ImageMagick(CVE-2016-3714) that’s incredibly easy to patch via Ansible. To address the patch we’ll utilize ImageMagick’s policy.xml file which is a recommended fix.