This role will install Supervisor, a process control system
- Ubuntu trusty
- Amazon Linux 2015.03
supervisor_cfg_loglevel
: infosupervisor_services
:{}
Services are configured using the supervisor_services
hash,
in which every entry is a different service. In turn, you can
specify any supervisor parameter you need.
---
- hosts: localhost
vars:
- supervisor_services:
celery:
command: celery -A tasks worker --loglevel=info
directory: /opt/celery_app
process_name: celery_worker
num_procs: 2
autostart: true
stdout_logfile: /var/log/supervisor/celery-app.log
stderr_logfile: /var/log/supervisor/celery-app.err
roles:
- role: ansible-role-supervisor
- Make a template for the main supervisord config
- Event listeners
- more things ?