Skip to content

Prerequisites

It's up to you how to install and work with Ansible, but in this theme for this documentation we're in Python world. (Ansible is written in Python). A tried and test method is to create a Python virtual environment and install Ansible wusing pip.

You may wish to include this Ansible work along side you application code, or have a separate standalone repository. My instinct is to keep things separate, breaking anything into small, manageable chunks always make life easier!

mkdir ~/ansible && cd ~/ansible
python -m venv venv
source venv/bin/activate

Install Ansible and the require AWS packages:

pip install ansible botocore boto3

To install Ansible on RHEL8:

subscription-manager repos --enable ansible-2-for-rhel-8-x86_64-rpms
dnf install ansible

Check the version:

ansible --version
ansible [core 2.14.0]