AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,100 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example" published by Apress, and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

How to install Ansible in Ubuntu 23.04 Lunar Lobster — Ansible Install — Video Tutorial

Learn the easiest ways to install and maintain Ansible on Ubuntu 23.04 Lunar Lobster using the universe and PPA repositories for efficient automation setup.

Watch Video

Watch "How to install Ansible in Ubuntu 23.04 Lunar Lobster — Ansible Install" on YouTube

What You'll Learn

Full Tutorial Content

How to install Ansible in the latest Ubuntu 23.04. Today we're going to talk about the easier way to install and maintain Ansible inside Ubuntu 23.04 with the distribution tools. I'm Luca Berton and welcome to today's episode of Ansible Pilot. How to install Ansible in Ubuntu 23.04 - universe - PPA Today we're talking about how to install Ansible in Ubuntu 23.04 Lunar Lobster. We're going to see the easy way to install and maintain Ansible inside Ubuntu with the distribution tools. We are going to see how to install Ansible in two different ways. The first method to install Ansible is using the universe repository, the default that you get after installation. The main advantage of using the universe repository is that you don't require any external repository. And the second method to install Ansible is using the PPA repository. Please bear in mind that adding an additional repository has a different quality assurance of software. See also: [Ansible terminology - ansible vs ansible-core packages](/articles/ansible-terminology-ansible-vs-ansible-core-packages). Links - [ansible packages for Ubuntu](https://packages.ubuntu.com/search?keywords=ansible) - [ansible PPA for Ubuntu](https://launchpad.net/~ansible/+archive/ubuntu/ansible) Playbook How to install Ansible in Ubuntu 23.04 Lunar Lobster with universe and PPA repositories. universe - code ```bash #!/bin/bash sudo apt update sudo apt install ansible ``` - execution ```bash $ ssh devops@ubuntu.example.com Welcome to Ubuntu 23.04 (GNU/Linux 6.2.0-20-generic aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Apr 25 02:40:36 PM UTC 2023 System load: 0.11 Processes: 255 Usage of /: 31.5% of 9.75GB Users logged in: 0 Memory usage: 6% IPv4 address for ens160: 192.168.246.131 Swap usage: 0% 2 updates can be applied immediately. To see these additional updates run: apt list --upgradable Last login: Tue Apr 25 13:54:34 2023 from 192.168.246.1 luca@luca:~$ sudo su [sudo] password for luca: root@luca:/home/luca# cat /etc/os-release PRETTY_NAME="Ubuntu 23.04" NAME="Ubuntu" VERSION_ID="23.04" VERSION="23.04 (Lunar Lobster)" VERSION_CODENAME=lunar ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=lunar LOGO=ubuntu-logo root@luca:/home/luca# apt-get install ansible Reading package lists... Done Building dependency tree... Done Reading state information... Done Suggested packages: cowsay sshpass The following NEW packages will be installed: ansible 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 15.8 MB of archives. After this operation, 208 MB of additional disk s

About This Tutorial

Read the full written article: How to install Ansible in Ubuntu 23.04 Lunar Lobster — Ansible Install

Topics Covered

Related Video Tutorials