How to install Ansible in Linux Mint 22.1 Xia — Ansible install
By Luca Berton · Published 2024-01-01 · Category: installation
Install Ansible on Linux Mint 22.1 Xia with this 2026 guide. Step-by-step instructions using apt.

Introduction
Linux Mint 22.1 Xia provides a stable and reliable platform for running Ansible automation. This guide walks you through installing Ansible on Linux Mint 22.1 Xia, ensuring you have everything needed to automate your infrastructure.
See also: How to install Ansible in Linux Mint 22.2 Zara — Ansible install
Prerequisites
Before you begin, ensure that you have:
- Access to a Linux Mint 22.1 Xia system with root or sudo privileges.
- An active internet connection to download necessary packages.
- Python 3.12 or later installed (included by default).
Step-by-Step Installation
- Connect to Your Server Initiate an SSH connection from your terminal:
ssh devops@server.example.com- Switch to Root User For installing system-wide software:
sudo su- Update System Packages Before installing any new software, update your system:
apt update && apt upgradeConfirm any prompts to ensure your system has the latest updates.
- Install Ansible Using the apt package manager, install Ansible:
apt install ansibleThis command installs Ansible along with its dependencies. Confirm the installation when prompted.
- Verify the Installation Once installation is complete, check the installed version:
ansible --versionThis command displays the version of Ansible and configuration details, confirming a successful installation.
Configuration and First Steps
- Configure Ansible Adjust settings in
/etc/ansible/ansible.cfgto customize default inventory file, privilege escalation, and more.
- Edit the Inventory File Define your managed hosts:
[local]
localhost ansible_connection=local
[webservers]
web1.example.com
web2.example.com- Test Ansible Connectivity Ensure Ansible can communicate with your hosts:
ansible all -m pingExpected output:
localhost | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"ping": "pong"
}See also: How to install Ansible in Linux Mint 22.3 Zena — Ansible install
Conclusion
With Ansible installed on Linux Mint 22.1 Xia, you are ready to automate your infrastructure. Start by creating simple playbooks and explore the vast library of modules available through Ansible Galaxy.
For more Ansible tutorials and guides, explore the complete article collection on Ansible Pilot.
Related Articles
- publishing collections to Ansible Galaxy
- become and privilege escalation explained
- managing inventory in Ansible
See also
Category: installation