Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fansible/ansible-role-supervisor
A ansible role to install supervisor on ubuntu trusty servers
https://github.com/fansible/ansible-role-supervisor
Last synced: about 1 month ago
JSON representation
A ansible role to install supervisor on ubuntu trusty servers
- Host: GitHub
- URL: https://github.com/fansible/ansible-role-supervisor
- Owner: fansible
- Created: 2015-12-09T17:35:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T10:16:01.000Z (about 9 years ago)
- Last Synced: 2024-08-04T05:01:43.121Z (5 months ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Supervisor
An ansible role to install [Supervisor](http://supervisord.org/) and add program to supervise in a simply manner for Ubuntu (trusty).
## Requirements and dependencies
None.
##Role Variables
``` yaml
programs_to_supervise: []
# Name and command are the only mandatory variable,
# check the template for a better understanding
# programs_to_supervise:
# - { name: top, command: "/usr/bin/top -b" }
# - { name: top, state: "stopped", command: "/usr/bin/top -b", directory: "/var/www/", autostart: true, autorestart: false, startretries: 5, user: "vagrant", }
```Example Playbook
``` yaml
- hosts: all
roles:
- ubuntu-supervisor #you may have to rename the role
vars:
commands_to_supervise:
- { name: myapp, command: "/usr/bin/node /var/www/myapp/server.js" }
```License
-------MIT
Author Information
------------------Maxime Thoonsen [@maxthoon](https://twitter.com/maxthoon)