Skip to content

Instantly share code, notes, and snippets.

@lwillek
lwillek / Setup Ansible dynamic inventories usable in Azure.MD
Last active April 29, 2025 14:40
Setup Ansible dynamic inventories usable in Azure

Install Python and virtual environment with help of pyenv

Install OS-specific dependencies

Before you install pyenv itself, you’re going to need some OS-specific dependencies. Pick whatever suits you.

Linux (Debian/Ubuntu)

$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git