Installing the required tools
python3
, pip3
, and virtualenv
are the prerequisites to execute the Ansible configuration playbooks that we will develop in this chapter. If you do not have these tools installed on your system, you can follow these instructions:
- Execute the following commands to install
python3
,pip3
, andvirtualenv
on Ubuntu Linux:$ sudo apt-get update $ sudo apt-get install python3 $ sudo apt-get install python3-pip $ sudo pip3 install virtualenv
- Execute the following commands to install
python3
,pip3
, andvirtualenv
on Amazon Linux 2:$ sudo yum update $ sudo yum install python3 $ sudo python3 -m pip install --upgrade pip $ sudo python3 -m pip install virtualenv
- Execute the following commands to install
python3
,pip3
, andvirtualenv
on macOS:$ brew install python3 $ curl -O https://bootstrap.pypa.io/get-pip.py $ sudo python3 get-pip.py $ sudo -H pip3 install virtualenv
- Execute the following commands to install
python3
,pip3
, andvirtualenv
on Windows...