Created
April 23, 2017 16:04
-
-
Save rgodishela/4187213183f531305760dafc940dbc46 to your computer and use it in GitHub Desktop.
Install Ansible in Redhat/Ubuntu Family.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ansible Installation in Redhat Family | |
Download the epel-release using rpm | |
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
Download ansible | |
sudo yum install ansible -y | |
Check the version | |
ansible --version | |
Run an Ad-Hoc command “ping” to test locally | |
ansible localhost -m ping -c local | |
Ansible Installation in Debian Family | |
Download the Ubuntu packages registry | |
sudo apt-get install software-properties-common | |
Add the Ansible Packages repository | |
sudo apt-add-repository ppa:ansible/ansible | |
Update the Ubuntu packages | |
sudo apt-get update | |
Install Ansible | |
sudo apt-get install ansible | |
Check the version | |
ansible --version | |
Run an Ad-Hoc command “ping” to test locally | |
ansible localhost -m ping -c local | |
please visit http://docs.ansible.com/ansible/intro_installation.html. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment