An Ansible API for humans.
https://seantis.github.io/suitable/
Suitable provides a simple wrapper over Ansible's internal API, that allows you to use Ansible programmatically.
>>> from suitable import Api
>>> api = Api('localhost')
>>> api.command('whoami').stdout()
'myuser'
Suitable is not endorsed by Ansible and it is not affilated with it. Use at your own peril.
The official way to use Ansible from Python is documented here: http://docs.ansible.com/ansible/developing_api.html
- Python 3.8+
- Ansible 6+
- Mitogen 0.3.7+
Support for older releases is kept only if possible. New Ansible releases are favored over old ones.
pip install tox
tox