Ansible

Ansible – Installing package on AWS EC2 Instance (ec2_instance_info)

This playbook is scripted to connect to EC2 instance via tags, then install the system package(s). The example below shows how to install Git, however, this can be any package. Order of things: You will obviously need to change the playbook values below in the script to match your AWS information. The values that need to be changed are highlighted in purple. Enjoy! Order of things:1. Get the ec2_instance_info,2. connect via ssh into the instance, and3. install git (could be any package).

Continue reading...