- sudo yum update -y
- sudo yum install -y python-boto python-boto3
- sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- sudo amazon-linux-extras install ansible2 -y # for amazon-linux2
- sudo yum install ansible -y
- Check if pip is already installed in your mac (which pip). In case you don't have it, try sudo easy_install pip
- For installing Ansible, use : sudo pip install ansible
- Another alternative to install ansible is using brew, you can simply do --> brew install ansible.
- The easiest solution for installing ansible on windows is to use a linux virtual machine. for instance- virtualbox, vmware
- python-pip and ansible are available via the EPEL repository.
- In order to see if EPEL repo is already available, use command--> yum repolist | grep epel
- use this command for RHEL/CentOS 6--> rpm -ivh http://d1.fedoraproject.org/pub/epel/6/x86_64/\ epel-release-6.8.noarch.rpm
- For RHEL/Centos7 use--> yum install epel-release
- sudo apt-get install python-software-properties
- sudo apt-add-repository -y ppa:ansible/ansible
- sudo apt-get update
- sudo apt-get install -y ansible