Skip to content

seantis/suitable

Repository files navigation

Suitable

An Ansible API for humans.

Documentation

https://seantis.github.io/suitable/

Quick Start

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'

Warning

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

Compatibility

  • 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.

Run Tests

pip install tox
tox

Build Status

Tests

Test Coverage

Test coverage

Latest Release

Latest release