How to install Ansible with uv

December 29, 2025

The official Ansible docs show how to install Ansible with pipx.

Terminal window
pipx install --include-deps ansible

uv has no equivalent to —include-deps. To ensure that all the required packages are installed, use the following command:

Terminal window
uv tool install ansible-core --with ansible
Terminal window
uv tool list
# ansible-core v2.15.13
# - ansible
# - ansible-config
# - ansible-connection
# - ansible-console
# - ansible-doc
# - ansible-galaxy
# - ansible-inventory
# - ansible-playbook
# - ansible-pull
# - ansible-test
# - ansible-vault