• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Install Ansible in Ubuntu 18.04 LTS with pip3

October 7, 2018 by Sharad Chhetri Leave a Comment

Ansible is centrazied configuration management tool and it is agent less. It connects with remote linux/unix client on ssh port and with windows on WinRM. We will learn to install Ansible by using pip3 on Ubuntu 18.04 LTS. The installation pretty much easy.

ansible
In this post, we will cover both installing ansible for particular user and all users of system.

Install Ansible using pip3 in Ubuntu 18.04 LTS

1. Login with super user account and run the command to install pip3

sudo apt install python3-pip

2. It is good to install the ansible in user space. Because when we install Ansible it is shipped with many python modules and dependencies, so it won’t affect system wide. Some geeks also prefer to install ansible in python vitualenv.

pip3 install ansible --user

3. Now you have to update the environment PATH variable for ansible commands. Update the .bashrc file and add the following lines.

vi ~/.bashrc
export PATH=$PATH:$HOME/.local/bin 

4. Now run the below command to apply the changes done in .bashrc file.

source .bashrc

5. Now check the ansible command path.

which ansible

Now the ansible is installed in your system.

If you want to install ansible and make it available to all user. You have to install pip3 as described in Step 1 and followed by command sudo pip3 install ansible

Note: We have selected the Ubuntu 18.04 LTS because it has python3 available.Hence, pip3 is easily available.

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Install Ansible on Ubuntu / CentOS / RHEL
  2. Ansible /bin/sh: 1: /usr/bin/python: not found
  3. Upgrade Ubuntu 14.04 LTS to Ubuntu 14.04.3 LTS
  4. How to install Apache Web Server on Ubuntu 14.04 LTS (Trusty Tahr)
  5. How to install Owncloud 6 on Ubuntu 14.04 LTS Server
  6. How to install Nagios 4 from source on Ubuntu 14.04 LTS
  7. How to install KVM on Ubuntu 16.04 LTS Desktop
  8. Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)
  9. How To Install Nginx On Ubuntu 22.04 LTS
  10. System settings not opening on Ubuntu 16.04 LTS

Filed Under: Linux Tagged With: ansible, ubuntu

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

How to make rm -fr command to be interactive

Linux Tac Command : Reverse Of cat Command Output

print working directory ( pwd , PWD , OLDPWD ) in Linux / Unix

Linux / Unix : whoami command use and advantage

How to test rpm package before installation

Command to create and delete group in Red Hat and CentOS linux

vi : Edit file without opening it

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

error command ‘gcc’ failed with exit status 1 in Ubuntu

GNU Screen

Change the default port number of ssh server

How to change smtp port number 25 in postfix

Install libjpegtran by using yum command in CentOS 6.x

df command not showing correct free space in linux

How to protect from port scanning and smurf attack in Linux Server by iptables

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ·
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy