install ansible on linux

Introduction

In this post I will cover installation of Ansible on my Linux box (Pop!_OS / Ubuntu). Ansible is a python package, so it's turns out that this addition to my DevOps tools is pretty simple to install.

I'll user pip install --user approach to install Ansible I documented many years ago. . Scroll down to Option 2 if you'd like more information.

Instructions at docs.ansible.com

Following the installation instructions provided at the Ansible documentation: see here , installation with pip is a slightly more modern version of the approach I described above:

$ python3 -m pip install --user ansible

Verifying the installation

A simple verification of the installation can be had by checking the version(s) installed:

$ ansible --version
ansible [core 2.17.9]
-- other censored informaton --

$ ansible-community --version
Ansible community version 10.7.0

Further information

My previous posts from this year have all focused on automating the creation of web servers and deployment of static web sites. Turns out that what I was looking for is called Infrastructure as code (IaC). I'll be attempting so set this up on digitalocean using Ansible, Packer, and Terraform. If you'd like to follow along, check out the devops tag or infrastructure as code (IaC) tag . I'm not an expert, but I'm sure I'll get the basics going!