KB 400544 - How to install Ansible

KB 400544 - How to install Ansible

1. Purpose

This article provides a focused, crystal-clear procedure strictly for installing Ansible on the control node and validating the installation. It excludes inventories, playbooks, and advanced configuration, making it suitable for baseline OS provisioning and enterprise standards.

2. Scope

Included

  1. Control Node Requirements

  2. OS-Specific installation steps

  3. Version validation

  4. Upgrade and removal

  5. Common installation issues

3. Supported Platforms

  1. Ubuntu 20.04/22.04/24.04

  2. Debian 11/12

  3. RHEL 8/9

  4. Rocky Linux 8/9

4. Prerequisites

  1. Root or sudo privileges

  2. Python 3.8 or higher

  3. Outbound internet access to OS repositories

  4. Verify prerequisites:

python3 --version sudo whoami

5. Installation Procedures

5.1 Ubuntu / Debian

sudo apt update sudo apt install -y software-properties-common sudo apt install -y ansible

Check version:

ansible --version

5.2 RHEL / Rocky

sudo dnf install -y epel-release sudo dnf install -y ansible-core

Optional full package:

sudo dnf install -y ansible

Verify:

ansible --version

  1. Version and Environment Validation

ansible --version which ansible python3 -c "import ansible; print(ansible.__version__)"

Expected:

  • Ansible binary available

  • Python interpreter detected

  • No module imports errors


  1. Upgrade Procedure

Ubuntu / Debian

sudo apt update sudo apt upgrade -y ansible

RHEL-based

sudo dnf upgrade -y ansible-core

  1. Removal Procedure

Ubuntu / Debian

sudo apt remove -y ansible sudo apt autoremove -y

RHEL-based

sudo dnf remove -y ansible ansible-core

    • Related Articles

    • KB 461057 - Install Rocky Linux 9.2

      What is Rocky Linux? Rocky Linux is a Linux distribution developed by Rocky Enterprise Software Foundation, which is a privately owned benefit corporation that describes itself as a "self-imposed not-for-profit". It is intended to be a downstream, ...
    • KB 290001 - How to Attach/Install License on UFM Appliance

      Get the License You can get a 60-day free evaluation license by applying via this link: NVIDIA License Portal Licenses can be purchased via the NVIDIA Sales Team. Licenses are calculated based on the number of HCA Adapters managed by the UFM. ...
    • KB 385001 - M.2 drives not detecting after VROC install on ASUS server

      Issue: M.2 drives not detecting on ASUS Server Cause: VROC doesn’t work if CSM mode enabled. Also Broadcom menu item will disappear if CSM mode enabled (Broadcom BIOS will use legacy tool for RAID creation). Solution: Re-flashed the BIOS ...
    • KB 559007 - UBUNTU 23.04 Desktop Installation

      UBUNTU 23.04 Desktop Installation Before you begin, ensure that you have a storage plan and raid configuration (Servers) on your systems. It is recommended that you install Ubuntu on a separate disc to protect your data in the scenario where the OS ...
    • KB 148484 - Installing NVIDIA Drivers on Ubuntu

      Ubuntu doesn't come with NVIDIA drivers installed by default as they are proprietary and closed-source. This means that you'll have issues like poor performance, displays not working, artifacts etc... while using the FOSS nouveau drivers. Graphical ...
    • Recent Articles

    • KB-630208 | How to use Find and Locate to search for files in Linux

      Purpose To provide Linux administrators and Field Engineers with guidance on using the find and locate utilities to efficiently search for files and directories within a Linux filesystem based on criteria such as name, type, size, timestamps, ...
    • KB-630164 | How to use rsync to Synchronize Files

      Purpose To provide a clear and practical procedure for using the rsync utility to synchronize files and directories between local systems and remote hosts, including push and pull operations, while preserving file attributes and optimizing data ...
    • KB-630107 | How to create a Linux swap file

      Purpose To provide Field Engineers and Linux administrators with a standardized procedure for creating, configuring, and validating a Linux swap file. This procedure helps ensure sufficient virtual memory is available when physical RAM is exhausted ...
    • MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims

      MSI All-in-One (AIO) PC – Physical Damage Policy for Warranty Claims MSI's standard warranty does not cover physical or accidental damage to an All-in-One (AIO) PC. If the damage is determined to be caused by external factors rather than a ...
    • KB 134833 - Troubleshooting NVSM Alert NV-CPU-XX – Unrecoverable CPU Internal Error

      Purpose This document provides a general troubleshooting procedure for the NVIDIA System Management (NVSM) alert NV-CPU-XX, which indicates that a CPU has reported an internal error. The article outlines how to verify whether the alert represents an ...
    • Popular Articles

    • CP Plus Camera and NVR Configuration

      NVR Configuration The CP Plus Pro Series of NVRs have been meticulously designed for providing you with upgraded performance and higher recording quality in your IP video surveillance solution. The robust processor that has been inculcated in this ...
    • KB 775235 - Kerberos Authentication – Overview

      What is Kerberos? Kerberos is a secure authentication method used in our Active Directory (AD) environment (mbuzztech.com). It allows users to: Access multiple systems without re-entering passwords (Single Sign-On – SSO) Log in once Where We Use It ...
    • How to Remove and Reinstall NVIDIA Drivers on Ubuntu

      This article provides step by step guide to completely remove existing NVIDIA drivers and reinstall specific version of the NVIDIA driver on the Ubuntu system Prerequisites Administrative (sudo) access to the Ubuntu system. Internet access to ...
    • KB 692001 - Personal Computers and Servers - Classification and Point of Contact

      We can classify the computers that MBUZZ handles based on their form-factor as below: Tower Workstations, Desktops, Gaming PCs and SFF (Small form factor) PCs fall under this category. These are computers people would use on a desk and rarely move. ...
    • KB 298031 - M.2 SSD Tier List

      The sequential read and write speeds, which are usually the most advertised number, are not a proper benchmark of real-world performance or the quality of an SSD. This article categorizes and tiers SSDs based on factors like the type of NAND flash, ...