Ansible 101: #002 - Install Ansible

Here I am again! As promised, this part will cover the installation of Ansible. This is not rocket science, so it will probably be one of the shorter parts.
General information

Throughout this guide I will mainly be discussing using it on Linux. Using it on Windows is slightly different, but I will try to point this out in the appropriate places.

I am currently using Ubuntu Desktop 20.04 LTS to write this guide.

Installation on Linux

Ubuntu

sudo apt update
sudp apt install -y ansible

# Test
ansible --version

RedHat / CentOS

sudo yum install ansible

# Test 
ansible --version

SuSe

sudo zypper ref
sudo zypper in ansible

# Test
ansible --version

Installing on Windows (Linux subsystem)

For using Ansible on Windows, I recommend the Linux subsystem (WSL), which can be used on Windows. However, I would like to point out that there may be some differences in usage (Windows permissions etc.).

Installation instructions for the subsystem can be found here:

Install WSL
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.

Once this is done, you can simply follow the instructions for Ubuntu (or the distribution of your choice)!