Installs and configures supervisor on a host.
- Linux
- none
- OSX
- Homebrew must be installed.
The default role variables in defaults/main.yml
are:
---
# defaults file for supervisor
supervisor_apps:
- program: name
application_path: /home/user/project/src
application_environment: {{ deployment_file_load_virtualenvwrapper }}
execution: celery -A {{ app_name }} worker --loglevel=info
supervisor_programs:
- program: name
command: 'command'
user: "user"
directory: "directory"
numprocs: 1
instalautostart: true
autorestart: true
startsecs: 10
priority: 990
disabled_program: name program to disabled
none
See the examples directory.
To run this playbook with default settings, create a basic playbook like this:
- hosts: servers
roles:
- supervisor
To install a specific version:
- hosts: servers
roles:
- { role: dgnest.supervisor }
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Made with ❤️ ️☕️ and 🍕 by dgnest.