Loading...

Watch: How to install Ansible in Debian 12 bookworm — Ansible install

The easier way to install the latest version of Ansible and maintain up-to-date in Debian 12 using APT and the \"main\" default repository.

How to install Ansible in Debian version 12?

Today we're going to talk about the easier way to install and maintain Ansible inside Debian using the default "main" repository.

How to install Ansible in Debian

  • Included in the "main" default repository

Today we're talking about How to install Ansible in Debian.

The good news is that Ansible is included in the default repository so you could install it simply with your usual package manager "apt".

You could expect the latest version of Ansible in the "main" repository.

Step-by-step

Install Ansible in Debian using the apt package manager and the "main" default repository.

code

  • install-ansible-debian.sh

``bash

#!/bin/bash

$ sudo apt-get update

$ sudo apt-get install ansible

$ sudo apt list –installed ansible

`

execution

``bash

$ ssh [email protected]

$ sudo su

root@debian:/home/devops# cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"

NAME="Debian GNU/Linux"

VERSION_ID="12"

VERSION="12 (bookworm)"

VERSION_CODENAME=bookworm

ID=debian

HOME_URL="https://www.debian.org/"

SUPPORT_URL="https://www.debian.org/support"

BUG_REPORT_URL="https://bugs.debian.org/"

cat /etc/debian_version

12.1

apt-get update

Hit:1 http://deb.debian.org/debian bookworm InRelease

Hit:2 http://security.debian.org/debian-security bookworm-security InRelease

Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]

Fetched 52.1 kB in 0s (152 kB/s)

Reading package lists... Done

apt-cache search ansible

ansible - Configuration management, deployment, and task execution system

ansible-core - Configuration management, deployment, and task execution system

ansible-lint - lint tool for Ansible playbooks

python-ansible-runner-doc - library that interfaces with Ansible (docs)

python3-ansible-runner - library that interfaces with Ansible (Python 3.x)

podman-toolbox - unprivileged development environment using containers

python-network-runner-doc - abstraction of Ansible for interaction with networking devices (docs)

python3-network-runner - abstraction of Ansible for interaction with networking devices (Python 3.x)

python3-ansible-compat - Ansible compatibility goodies

python3-ansible-pygments - pygments lexer and style Ansible snippets

ara-client - ARA Records Ansible - Client

ara-server - ARA Records Ansible - Server

python-ara-doc - ARA Records Ansible - doc

python3-ara - ARA Records Ansible

ansible-mitogen - Fast connection strategy for Ansible

python3-reclass

Read the full tutorial: How to install Ansible in Debian 12 bookworm — Ansible install