Ansible

(Optional) Preparing a virtual environment for Ansible

If you donโ€™t want to install dependencies for Ansible on a working machine, then you can use Pythonโ€™s ability to create a virtual environment and work in it:

VENVDIR=kubespray-venv
KUBESPRAYDIR=kubespray
python3 -m venv $VENVDIR
source $VENVDIR/bin/activate

All further commands should be executed from the dekube_cluster_deploy directory (unpacked archive).

Preparing the environment for Ansible

For the offline-setup: in the root of the unpacked repository execute:

cd pip3
pip3 install *.whl
cd ..

For the online-setup in the root of the repository execute:

pip3 install -U -r requirements.txt --no-cache-dir

Installing roles and dependencies for Ansible

For the offline-setup: in the root of the repository execute:

cd collections
ansible-galaxy install collections -r requirements.yml
cd ..

For the online-setup: in the root of the repository execute:

ansible-galaxy install collections -r requirements.yml

To watch a video tutorial that demonstrates the correct process for installing dependencies, you can view it: here.

Last updated