#ansible #wrapper #python

app ansible-wrapper

Wrapper around various Ansible commands to automatically manage dependencies

5 stable releases

Uses new Rust 2024

new 2025.3.30 Mar 30, 2025
2025.3.20 Mar 20, 2025
2025.3.19 Mar 19, 2025
2025.3.17 Mar 17, 2025
2025.3.16 Mar 16, 2025

#190 in Command line utilities

Download history 229/week @ 2025-03-12 257/week @ 2025-03-19

486 downloads per month

0BSD license

1.5MB
338 lines

ansible-wrapper

ansible-wrapper is a wrapper various Ansible commands using uv to automatically download both Python dependencies and required Ansible collections.

Features

Installation

Run cargo install ansible-wrapper on your system or download the binary from the releases page and put it somewhere on your system. Once installed, either define symlinks to Ansible CLI commands like this:

ln -s /path/to/ansible-wrapper ~/.local/bin/ansible
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-config
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-console
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-doc
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-galaxy
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-inventory
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-playbook
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-pull
ln -s /path/to/ansible-wrapper ~/.local/bin/ansible-vault

Or create shell aliases like this:

alias ansible='/path/to/ansible-wrapper'
alias ansible-doc='/path/to/ansible-wrapper config'
alias ansible-doc='/path/to/ansible-wrapper console'
alias ansible-doc='/path/to/ansible-wrapper doc'
alias ansible-galaxy='/path/to/ansible-wrapper galaxy'
alias ansible-galaxy='/path/to/ansible-wrapper inventory'
alias ansible-playbook='/path/to/ansible-wrapper playbook'
alias ansible-playbook='/path/to/ansible-wrapper pull'
alias ansible-vault='/path/to/ansible-wrapper vault'

Or simply call the wrapper directly like this:

/path/to/ansible-wrapper ...
/path/to/ansible-wrapper config ...
/path/to/ansible-wrapper console ...
/path/to/ansible-wrapper doc ...
/path/to/ansible-wrapper galaxy ...
/path/to/ansible-wrapper inventory ...
/path/to/ansible-wrapper playbook ...
/path/to/ansible-wrapper pull ...
/path/to/ansible-wrapper vault ...

Dependencies

~5–14MB
~219K SLoC