Ansible and pipx
The easiest way to make an up-to-date installation is by using pipx:
# initial installation
pipx install --include-deps ansible
pipx ensurepath
pipx completions
pipx inject ansible ansible-lint
pipx inject ansible jmespath
pipx inject ansible librouteros
pipx inject ansible paramiko
# future upgrades
pipx upgrade --include-injected ansible