How to install Ansible on RedHat using Yum
If you are within AWS - Amazon Web Services, the best AMI to use is:
RHEL-7.1_HVM_GA-20150225-x86_64-1-Hourly2-GP2 (ami-4dbf9e7d)
Please read the following and use at your own risk
echo connecting to the Ansible host
ssh -i /home/don/Downloads/AnsibleRedHat.pem ec2-user@###.###.ip-address
ping google.com
echo installing utilities
sudo yum -y install wget
sudo wget https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum -y update
sudo rpm -Uvhi epel-release-7-5.noarch.rpm
yum -y update
yum clean metadata
sudo yum install epel-release
echo install Ansible
sudo yum install ansible -y
ansible --version
echo install git
sudo yum install git
git clone git://github.com/ansible/ansible.git --recursive
*Ansible is a free software platform for
configuring and managing computers. It combines multi-node software
deployment, ad hoc task execution, and configuration management. It
manages nodes over SSH or PowerShell and requires Python (2.4 or later)
to be installed on them.
No comments:
Post a Comment