Skip to content

Instantly share code, notes, and snippets.

@konstruktoid
Last active April 27, 2023 16:53
Show Gist options
  • Save konstruktoid/664d9ca3d3f88941ecd69b45b4dd8d81 to your computer and use it in GitHub Desktop.
Save konstruktoid/664d9ca3d3f88941ecd69b45b4dd8d81 to your computer and use it in GitHub Desktop.
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
sudo apt-get --assume-yes update
sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install libssl-dev python3-pip vagrant virtualbox
vagrant plugin install vagrant-scp
vagrant plugin install vagrant-vbguest

python3 -m pip install -U virtualenv
virtualenv -p /usr/bin/python3.10 ~/py310
source ~/py310/bin/activate
python3 -m pip install -U pip

# CAUTION: Removed lint command and failed vagrant driver
# TODO: Replace molecule lint with tox alternative
# python3 -m pip --trusted-host pypi.org install --upgrade --force-reinstall ansible-core ansible-lint molecule molecule-plugins molecule-plugins[vagrant] tox

python3 -m pip install --upgrade --force-reinstall ansible-core ansible-lint molecule==4.0.4 python-vagrant "molecule-plugins[vagrant]==23.0.0" tox pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment