A collection of scripts that I use for Lab Builds
This is an active work in progress, it is not yet ready for primetime
I currently run everything inside of a python venv (mostly in Pycharm) This is the configuration I use:
# if not using Pycharm
apt install python3.8-venv
python3 -m venv venv --prompt="Lab Automation"
pip install --upgrade pip
pip install ansible pyvmomi
pip install --upgrade setuptools==62.0.0
pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
I'm trying to use requirements files, however this is not yet working in all environments:
Install Python and Create Virtual Environment
pip install --upgrade pip
mkdir projects/ansible
apt install python3.8-venv
python3 -m venv venv --prompt="ansible"
pip install -r requirements.txt
Install Ansible collections
cd ansible/collections
ansible-galaxy install -r requirements.yaml