Last active
October 14, 2024 08:29
-
-
Save KalleDK/3f0f511406a168ba5c4d51d2ed27eaba to your computer and use it in GitHub Desktop.
Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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