# Day 8/100 of DevOps

### Task: Install `ansible` version `4.8.0` on `Jump host` using `pip3` only. Make sure Ansible binary is available globally on this system, i.e all users on this system are able to run Ansible commands.

1. Check the OS version
    
    `cat /etc/os-release`
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1762872001639/0e2e820f-f31d-4561-929e-ee84102f090c.png align="center")

As, it is **CentOS**, we will use `rpm` package else for **Debian**, use `apt` package.

2. Check if Python & PP is installed or not. If not install it.
    
    Ansible runs on Python, so the first step is to make sure **Python 3** is available. `pip3` is Python’s package manager — without it, we can’t install Ansible.
    
    \# For Debian/Ubuntu
    
    `sudo apt update && sudo apt install -y python3-pip` # For Debian/Ubuntu
    
    \# For RHEL/CentOS/Rocky Linux
    
    `sudo yum install -y python3-pip` # For RHEL/CentOS/Rocky Linux
    
    `sudo pip3 install --upgrade pip`
    

Once Python & PIP is installed, use the below commands to confirm.

`python3 --version` or `python -V`

`pip3 --version` or `pip -V`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1762872215361/2b9d1e29-bb2b-4ccd-ba38-6255b03de0bd.png align="center")

3. Install Ansible version 4.8.0 or any required version
    
    `sudo pip3 install ansible==4.8.0`
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1762873112559/1f501fb0-45c3-41e6-b62c-79be291b9fee.png align="center")

4. To verify
    
    `pip3 show ansible`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1762873565401/c5330814-2034-4815-8025-ff176ddba83a.png align="center")
    

`ansible --version`

`which ansible`

The `ansible --version` command should output information including `ansible-core` and the full Ansible package version. The `which ansible` command should return a path like `/usr/local/bin/ansible`, confirming its global installation location. If the `ansible` command is not found, ensure that `/usr/local/bin` is in the system's `PATH` environment variable. This is usually the default for most Linux distributions.
