Browse Source

[WIP] supervisord role

Must be completed (metadata, readme…) and tested.
samba
Jérémy Lecour 4 years ago
committed by Jérémy Lecour
parent
commit
7b53afd600
  1. 2
      supervisord/files/http.conf
  2. 5
      supervisord/handlers/main.yml
  3. 18
      supervisord/tasks/main.yml

2
supervisord/files/http.conf

@ -0,0 +1,2 @@
[inet_http_server]
port = 9001

5
supervisord/handlers/main.yml

@ -0,0 +1,5 @@
---
- name: Restart supervisord
service:
name: supervisor
state: restarted

18
supervisord/tasks/main.yml

@ -0,0 +1,18 @@
---
- name: Install supervisord
apt:
name: supervisor
- name: Add http configuration for supvervisord
copy:
src: http.conf
dest: /etc/supervisor/conf.d/
mode: "0644"
notify: Restart supervisord
#- name: symlink kampn configuration for supervisord
# file:
# name: /etc/supervisord/conf.d/preprod.conf
# src: /home/preprod/social/current/supervisord.conf
# state: link
# notify: Restart supervisord
Loading…
Cancel
Save