Skip to content

Instantly share code, notes, and snippets.

@KalleDK
Last active October 14, 2024 08:29
Show Gist options
  • Save KalleDK/3f0f511406a168ba5c4d51d2ed27eaba to your computer and use it in GitHub Desktop.
Save KalleDK/3f0f511406a168ba5c4d51d2ed27eaba to your computer and use it in GitHub Desktop.
Ansible
# Download and install uv
curl -L https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz | tar zxvf - -C /usr/local/bin --strip-components=1
# .profile
export UV_TOOL_BIN_DIR=/usr/local/bin
export UV_TOOL_DIR=/usr/local/lib/uv
export ANSIBLE_COLLECTIONS_PATH=/usr/share/ansible/collections
# Install ansible
sudo -i uv tool install ansible-core
# Add ansible-lint
sudo -i ln -s /usr/local/lib/uv/ansible-core/bin/ansible-lint /usr/local/bin/ansible-lint
# Install collections
sudo -i ansible-galaxy collection install ansible.netcommon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment