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...Ansible
Ansible – Creating EC2 Instances, System Group, and System User
This playbook is scripted to build two ec2 instances, then: create a user group labeled teacher, create a system user named tim, and add tim to the teacher’s group. You will obviously need to change the playbook values below in the script to match up with AWS information. The values that need to be changed are highlighted in purple. Enjoy!
Continue reading...