OPERATING SYSTEMSOS Linux

How to Install Ansible on Ubuntu 22.04

In this video I will show you how to install Ansible on Ubuntu 22.04
Spoiler alert – the command is pip install ansible

Other Lessons:
1. How to Install Ansible on Ubunutu

2. Backup Cisco Nexus Config with Ansible

3. Push Code to GitHub for the first time

4. Ansible Jinja2 Template Example

The reference documentation is here:
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html

Commands used:
sudo apt update && sudo apt -y upgrade

sudo apt install net-tools

sudo apt install openssh-server

sudo apt install python3-pip

sudo apt install python3-virtualenv

virtualenv -p python3.10 venv-ansible

source venv-ansible/bin/activate

pip install ansible

For more information check out my website:
https://www.rogerperkin.co.uk/

00:00 Introduction
01:37 Install Pip
02:30 Install Virtualenv
03:06 Create Virtual Environment
04:45 Install Ansible
05:33 Check Ansible Version

✅ Subscribe to my Channel and get more great tips
https://www.youtube.com/rogerperkin/?sub_confirmation=1

source

ubuntu

One thought on “How to Install Ansible on Ubuntu 22.04

  • Wow, first viewer! What do you think of using pipx to install Ansible for local user?

Comments are closed.