Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.36 KB

installing_ansible.md

File metadata and controls

28 lines (23 loc) · 1.36 KB

Install ansible for linux

Install ansible on a Mac

  • 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.

Install ansible on Windows

  • The easiest solution for installing ansible on windows is to use a linux virtual machine. for instance- virtualbox, vmware

For RHEL/CentOS systems

  • 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

For Debian/Ubuntu

  • 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

Once installed, use ansible --version (to verify)