From 7b53afd600fdc10c679b6c5b6d7c3fa7fe676057 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 23 May 2017 15:15:07 +0200 Subject: [PATCH] [WIP] supervisord role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Must be completed (metadata, readmeā€¦) and tested. --- supervisord/files/http.conf | 2 ++ supervisord/handlers/main.yml | 5 +++++ supervisord/tasks/main.yml | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 supervisord/files/http.conf create mode 100644 supervisord/handlers/main.yml create mode 100644 supervisord/tasks/main.yml diff --git a/supervisord/files/http.conf b/supervisord/files/http.conf new file mode 100644 index 00000000..cc685d61 --- /dev/null +++ b/supervisord/files/http.conf @@ -0,0 +1,2 @@ +[inet_http_server] +port = 9001 diff --git a/supervisord/handlers/main.yml b/supervisord/handlers/main.yml new file mode 100644 index 00000000..3bf89428 --- /dev/null +++ b/supervisord/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Restart supervisord + service: + name: supervisor + state: restarted diff --git a/supervisord/tasks/main.yml b/supervisord/tasks/main.yml new file mode 100644 index 00000000..5aa9bb3d --- /dev/null +++ b/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