Search This Blog

Running Ansible on AWS

Ansible is Configuration Management and automation engine. Its has a very minimal setup, its just depends on Python - witch is good because pretty much all linux distributions came with python.

You can run Ansible with just SSH, yes with-out agents. Like other engines Ansible is based on Recipes, in Ansible world recipes are called palybooks.

Playbooks are written in a kind of DSL inside a YAML file, often called main.yml. You can have multiple YAML files and reuse a lot your provision playbooks.

Ansible runs easily pretty much in all environments BUT windows. For windows users its easy to use it with Vagrant. It`s possible to have pretty complex provision scripts if needed, there are lots of modules like git, file, get_url and so one and on. Ansible provide variables, so you can bind custom values on conf files also called templates. For this post i will how to do a very simple and straight forward setup for ansible on AWS, this will be a pretty basic setup but will be great for use as a developer doing any kinda of provisioning task, so you gonna have a enviroment to test your playbooks.

You need create a AMI on EC2, for this sample i will use Amazon Linux | CentOS based. You can do with other linux distribution if you like so, once you create the box and log into ssh, you just need run the following steps.

Popular posts from this blog

Akka a great actor framework for the JVM. Akka is high performance with high throughput and low latency, resilient by Design. It's possible to use Akka with Java however I always used and recommend you use with Scala.

Create actors systems is pretty easy however creating multiple nodes on Akka cluster locally could be boring and error-prone. So I want to show how easy is to create an Akka cluster using Scala and Docker(Engine & Docker-Compose). We will create a very simple actor system, we will just log events on the cluster however you can use this as a base to do more complex code.