Installing Ansible
- Ensure that Python is installed
-
Create a new directory called
ansible&cdinto itmkdir ansible && cd $_ -
Create a Python virtual environment
python3 -m venv venv -
Activate the virtual environment
source venv/bin/activate -
Install Ansible
pip install ansible
Check which packages were installed using the pip freeze command