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 [email protected]
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.n