Chapter1: How to deploy Ansible on a Linux instance, in 3 easy steps
Objective: To install Ansible on a Linux instance and turn it into Ansible Control Machine.
As I don't have physical machines to try this out, I am going to use an Amazon EC2 instance.
Prerequisites:
1. A Linux instance (preferably Red Hat) with Python installed. Refer to my blogpost to create a Linux instance on AWS cloud. At the time of this writing, AWS offers a RHEL AMI with Python 2.7.x pre-installed.
2. Ensure the private key pair for that instance is saved locally and converted to .ppk file so you can use PuTTY to connect to it. Refer to my blogpost.
Step-1: Login to your RHEL instance on Amazon EC2. AWS may limit you to login as ec2-user. But that is fine. You can run installs with sudo
Step-2: To pull Ansible from the weblink, run the command:
sudo rpm -Uvh https://d1.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Step-3: Install and check version.
sudo yum -y install ansible
As I don't have physical machines to try this out, I am going to use an Amazon EC2 instance.
Prerequisites:
1. A Linux instance (preferably Red Hat) with Python installed. Refer to my blogpost to create a Linux instance on AWS cloud. At the time of this writing, AWS offers a RHEL AMI with Python 2.7.x pre-installed.
2. Ensure the private key pair for that instance is saved locally and converted to .ppk file so you can use PuTTY to connect to it. Refer to my blogpost.
Step-1: Login to your RHEL instance on Amazon EC2. AWS may limit you to login as ec2-user. But that is fine. You can run installs with sudo
Step-2: To pull Ansible from the weblink, run the command:
sudo rpm -Uvh https://d1.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Step-3: Install and check version.
sudo yum -y install ansible
Comments
Post a Comment