This a basic walkthrough on how to install Ansible 2 on AWS. Ansible is a configuration management automation tool, that is used to manage remote machines. Ansible works by running commands via SSH, so there’s no need to install any server software.
Step 1 — Install the latest version of a packages
$ sudo yum update -y
Step 2 — Use the amazon-linux-extras command to install Ansible.
$ sudo amazon-linux-extras install ansible2 -y
Step 3– Check Ansible Version
$ ansible — version
At this point, you can start to connect with slaves through ssh.