summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Stiletto <blasux@blasux.ru>2014-10-22 02:48:25 +0400
committerGravatar Stiletto <blasux@blasux.ru>2014-10-22 02:48:25 +0400
commitff6e3bbed0fd7138a2234bcef145e299f814408d (patch)
tree9a6246738f611eefd04f7e262d3aa69b48c40b17
Initial commit
-rw-r--r--handlers/main.yml2
-rw-r--r--tasks/main.yml9
2 files changed, 11 insertions, 0 deletions
diff --git a/handlers/main.yml b/handlers/main.yml
new file mode 100644
index 0000000..ae95abc
--- /dev/null
+++ b/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: reload supervisor
+ command: /usr/bin/supervisorctl reload
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..bd95f96
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,9 @@
+---
+- apt: pkg="supervisor" state=present
+
+#- template: src="{{ monit_template|default('monit.conf',True)}}" dest=/etc/monit/monitrc mode=0600
+# notify: reload supervisor
+# tags: supervisor
+
+- service: name=supervisor state=started
+ tags: supervisor