Install and configure supervisord to manage services.
Targeting Ansible 2.0+ (currently requiring 1.9). Deployment architecture is focused on Ubuntu trusty.
None. This role is very basic.
Include this role via galaxy and write custom roles to setup your services in
the /etc/supervisor/cond.d directory
.
See defaults/main.yml
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: supervisor }
vars:
supervisor_service:
service_name:
command: path/to/command
directory: directory/to/exec/from
stderrlogfile: path/to/error.log
stdoutlogfile: path/to/stdout.log
user: user-to-run-as
environment: ENV=var
MIT
Pull requests happily merged.
Add optional configuration logic to enable the http or socket server. Template the entire main configuration.