2020-03-09 10:11:07 +01:00
|
|
|
[supervisord]
|
|
|
|
pidfile={{ remote_dir }}/supervisord.pid
|
|
|
|
logfile={{ remote_dir }}/supervisord.log
|
|
|
|
|
|
|
|
[program:py1]
|
|
|
|
command={{ ansible_python.executable }} -i -u -
|
|
|
|
user={{ ansible_user_id }}
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile={{ remote_dir }}/py1.log
|
|
|
|
redirect_stderr=yes
|
|
|
|
|
|
|
|
[program:py2]
|
|
|
|
command={{ ansible_python.executable }} -i -u -
|
|
|
|
user={{ ansible_user_id }}
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile={{ remote_dir }}/py2.log
|
|
|
|
redirect_stderr=yes
|
|
|
|
|
|
|
|
[group:pys]
|
|
|
|
programs=py1,py2
|
|
|
|
|
|
|
|
[unix_http_server]
|
2020-03-31 10:52:24 +02:00
|
|
|
file={{ supervisord_sock_path.path }}/supervisord.sock
|
2020-03-09 10:11:07 +01:00
|
|
|
{% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
|
|
|
|
username = {{ credentials.username }}
|
|
|
|
password = {{ credentials.password }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
[inet_http_server]
|
|
|
|
port=127.0.0.1:9001
|
|
|
|
{% if credentials.username is defined and credentials.username|default(false, boolean=true) %}
|
|
|
|
username = {{ credentials.username }}
|
|
|
|
password = {{ credentials.password }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
[supervisorctl]
|
2021-07-25 14:18:13 +02:00
|
|
|
serverurl=unix://{{ supervisord_sock_path.path }}/supervisord.sock
|
2020-03-09 10:11:07 +01:00
|
|
|
|
|
|
|
[rpcinterface:supervisor]
|
|
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|