If there's anything, this "adapting" requires a lot of learning - Ansible next...

Firstly Install Ansible::

sudo yum install ansible-lint.noarch ansible-inventory-grapher.noarch -y

Ubuntu Specific
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible

1. Update Ansible hosts file @ /etc/ansible/hosts - I added in the [dev] section with my AWS Instance below it

## [webservers]
## alpha.example.org
## beta.example.org
## 192.168.1.100
## 192.168.1.110

[dev]
ec2-52-208-72-152.eu-west-1.compute.amazonaws.com

2. Create first ansible YAML file

[alex@co-dev-01 Ansible]$ cat centos7_gold.yml 
---
- hosts: dev
  remote_user: centos
  become: yes
  become_method: sudo
  tasks:
  - name: Install the latest version of shellinabox
    yum: name=shellinabox state=latest

3. Run the playbook

ansible-playbook centos7_gold.yml --private-key="../AWS/keys/awskp.pem"

4. See your results!

MyFirstAnsible!

I already happened to have installed shellinabox on this particular instance so changed=0. The great thing about Ansible so I've been told and read is that it is "idempotent" - meaning that no matter how many times the script/method is called, the result is the same.

Ansible