.. image:: https://seantis.github.io/suitable/_static/logo.svg :alt: Suitable :width: 50% :align: center
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.
.. code-block:: pycon
>>> 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>
_
Support for older releases is kept only if possible. New Ansible releases are favored over old ones.
.. code-block:: console
pip install tox
tox
.. image:: https://github.com/seantis/suitable/actions/workflows/python-tox.yaml/badge.svg :target: https://github.com/seantis/suitable/actions :alt: Tests
.. image:: https://codecov.io/github/seantis/suitable/coverage.svg?branch=master :target: https://codecov.io/github/seantis/suitable?branch=master :alt: Test coverage
.. image:: https://badge.fury.io/py/suitable.svg :target: https://badge.fury.io/py/suitable :alt: Latest release