To install Ansible on Amazon AWS Linux, here’s a quick step-by-step guide:
sudo yum update -y
sudo amazon-linux-extras install epel -y
sudo yum install ansible -y
ansible --version
That’s it! Ansible should now be ready to use on your AWS Linux instance.