Skip to content

Instantly share code, notes, and snippets.

@tomwhoiscontrary
Created July 29, 2024 15:08
Show Gist options
  • Save tomwhoiscontrary/4ad9b77ca8b79458f52896a849d8dcbc to your computer and use it in GitHub Desktop.
Save tomwhoiscontrary/4ad9b77ca8b79458f52896a849d8dcbc to your computer and use it in GitHub Desktop.
Setting up ansible from scratch, with all versions in the stack controlled, in a Rocky 9.3 VM
# throughout, the versions of dnf packages are not at all controlled :(
# install asdf
dnf install curl-minimal git
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
# install asdf-python
asdf plugin-add python
git -C ~/.asdf/plugins/python checkout 7b0af87
# install python
dnf install make gcc patch zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel libuuid-devel gdbm-libs libnsl2
asdf install python 3.12.4
echo python 3.12.4 >.tool-versions
# install ansible
python -m venv ansible.venv
ansible.venv/bin/pip install ansible==10.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment