Skip to main content

A restful HTTP API for ansible

Project description

ansible-api v0.5.1

A restful http api for ansible python version >= 3.7

What is it?

Ansible is a radically simple IT automation system. If you are trying to use it and not like CLI, you can try me now. I can provide you use ansible by A RESTful HTTP Api and a realtime processing message (websocket api), you can see all details.

Changelog

  • 0.5.1
    • add sha256 encryption support for signature (thx: jbackman)
    • fit for latest ansible(v2.8.6) and ansible-runner(v1.4.2)
    • add more error event capture in response
  • 0.5.0 replace tornado with sanic, more lightly (python>=3.7)
  • 0.3.0 using ansible-runner as middleware
  • 0.2.6 adaptive ansible 2.6.4 and add asynchronization mode
  • 0.2.2 optimize log
  • 0.2.1 optimize log and allow mutil-instance in the same host
  • 0.2.0 support websocket, remove code invaded in ansible

Structure chart

image

How to install

  • [preparatory work] python version >= 3.7 (use asyncio featrue)
  • pip3 install ansible-api

How to start it

  • default configuration: /etc/ansible/api.cfg
  • start:
ansible-api -c [Configfile, Optional] -d [Daemon Mode, Optional]

eg: ansible-api -c /etc/ansible/api.cfg -d > /dev/null &

How to prepare your data

HTTP API Usage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible-api-0.5.1.tar.gz (24.1 kB view hashes)

Uploaded Source

Built Distribution

ansible_api-0.5.1-py3-none-any.whl (25.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page