Giter Site home page Giter Site logo

Comments (4)

ppabc avatar ppabc commented on July 19, 2024

Ansible API主要是通Ansible的plugins插件方式,把请求传递给Ansible去执行,对吧?
Ansible API主要是通Ansible的plugins插件方式,把请求传递给Ansible去执行,对吧?

from ansible-api.

lfbear avatar lfbear commented on July 19, 2024

不完全是这样,ansible-api实现了ansible和ansbile-playbook的基本功能(重新用多线程模式把ansible的cli写了一次),然后通过借助他的task和callback机制来获取结构化返回数据。最后把这些操作封装成了http api

from ansible-api.

leoomo avatar leoomo commented on July 19, 2024

我通过官方的api,用两个线程同时跑两个playbook,第一次能正常运行(playbook按照设置的步骤失败),再次跑的时候就出现了 ' NoneType' object has no attribute 'name'的问题。总之要隔一段时间才能正常多线程跑,请问您遇到过这种问题吗?

from ansible-api.

lfbear avatar lfbear commented on July 19, 2024

@leoomo 是起了2个进程么 如果起了一个进程是没有问题的 ansible-api会使用线程池自己来控制多线程运行的 几百台server累计运行1年多 没有发现这个错误。从报错内容看,猜测是playbook的name属性没有了,如果传参没有问题,那很有可能就是你开了多个进程(不是线程)导致的

from ansible-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.