This is the computer/server where you’ll install Ansible.
sudo apt update && sudo apt upgrade -y # Ubuntu/Debian
sudo yum update -y # CentOS/RHEL
sudo apt install python3 -y
Check:
python3 --version
sudo apt install ansible -y
pip install ansible
Check:
ansible --version
Install Python if missing: