Giter Site home page Giter Site logo

ansible-supervisor_task's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-supervisor_task's Issues

Add support for state=absent

Otherwise there is no way (other than manually) to remove a task.

Especially handy when renaming a supervisor task

Deal with scenario where supervisor isn't running

Sometimes (observed in a docker container) the role will fail.

TASK: [EDITD.supervisor_task | Update supervisor] *****************************
failed: [127.0.0.1] => {"changed": true, "cmd": ["supervisorctl", "update"], "delta": "0:00:00.073057", "end": "2016-08-10 14:12:29.548373", "rc": 2, "start": "2016-08-10 14:12:29.475316", "warnings": []}
stdout: error: <class socket.error>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 224

Looks like this is caused by supervisord not running when update is called: Supervisor/supervisor#121 (comment)

Rename variable "name" as it conflicts with Ansible

As per comment here: https://github.com/EDITD/pypi/pull/6#discussion_r368475032

  • This role needs fixing since Ansible now reserves "name" to be the display name of a role/task. The variable "name" used in this role as the supervisor task's name needs to be changed (to program_name for example)
  • Our own playbook for pypi (https://github.com/EDITD/pypi) should be updated to remove the duplication of this role an use a reference to this one instead

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.