How to install Ansible in the latest Ubuntu 22.10.

Today we're going to talk about the easier way to install and maintain Ansible inside Ubuntu 22.10 with the distribution tools.

I'm Luca Berton and welcome to today's episode of Ansible Pilot.

How to install Ansible in Ubuntu 22.10

  • universe
  • PPA

Today we're talking about how to install Ansible in Ubuntu 22.10 Kinetic Kudu.

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 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.

At the moment the installation of Ansible using the PPA repository is not available. 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 22.10 Kinetic Kudu with universe repository.

universe

  • code

``bash

#!/bin/bash

sudo apt update

sudo apt install ansible

`

  • execution

``bash

$ ssh [email protected]

[email protected]'s password:

Welcome to Ubuntu 22.10 (GNU/Linux 5.19.0-23-generic aarch64)

* Documentation: https://help.ubuntu.com

* Management: https://landscape.canonical.com

* Support: https://ubuntu.com/advantage

System information as of Tue Nov 29 11:45:49 PM UTC 2022

System load: 0.45751953125 Processes: 230

Usage of /: 30.4% of 9.75GB Users logged in: 1

Memory usage: 6% IPv4 address for ens160: 192.168.246.129

Swap usage: 0%

3 updates can be applied immediately.

To see these additional updates run: apt list --upgradable

Last login: Tue Nov 29 23:44:25 2022 from 192.168.246.1

luca@ubuntu:~$ cat /etc/os-release

PRETTY_NAME="Ubuntu 22.10"

NAME="Ubuntu"

VERSION_ID="22.10"

VERSION="22.10 (Kinetic Kudu)"

VERSION_CODENAME=kinetic

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=kinetic

LOGO=ubuntu-logo

luca@ubuntu:~$ ansible

Command 'ansible' not found, but can be installed with:

sudo apt install ansible-core

luca@ubuntu:~$ sudo su

[sudo] password for luca:

root@ubuntu:/home/luca# apt list available ansible

Listing... Done

ansible/kinetic,now 5.5.0-1 all [residual-config]

root@ubuntu:/home/luca# apt list available ansible-core

Listing... Done

ansible-core/kinetic 2.12.4-1 all

root@ubuntu:/home/luca# apt-get update

Hit:1 http: