Skip to content

Instantly share code, notes, and snippets.

@rgodishela
Created April 23, 2017 16:04
Show Gist options
  • Save rgodishela/4187213183f531305760dafc940dbc46 to your computer and use it in GitHub Desktop.
Save rgodishela/4187213183f531305760dafc940dbc46 to your computer and use it in GitHub Desktop.
Install Ansible in Redhat/Ubuntu Family.
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