Ansible provides backend API with flask encapsulation

Source: Internet
Author: User

Ansible is a low-level implementation of automated operations and is powerful, but it needs to be implemented by command or playbook Yaml files, which is too expensive for OPS personnel. So consider the Flask Web framework to implement its two-pass package, providing an HTTP interface for remote invocation. But when we request Ansbile API, the ansible default itself is blocked, the user side will always be waiting state, so that everyone's user experience is not good, so here will use RQ to achieve its non-blocking function, that is, to achieve the asynchronous task.


Open source software for use

Ansible

Flask

Redis

Redis-rq


Code address



This article is from the "Fuqin Wine" blog, please make sure to keep this source http://yuhongchun.blog.51cto.com/1604432/1936513

Ansible provides backend API with flask encapsulation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.