aboutsummaryrefslogtreecommitdiff
path: root/ansible/common/handlers
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2014-03-27 09:11:55 +0100
committerMilo Casagrande <milo@ubuntu.com>2014-03-27 09:11:55 +0100
commitd729a950ce28f684850bde51609ed180a2462f6a (patch)
treefc312c51b6b2c75f0fec4792c90da8c01ecac599 /ansible/common/handlers
parent3899a7ee522b72d35a48560f7d785bc4d50d1749 (diff)
Imported ansible common tasks.
Diffstat (limited to 'ansible/common/handlers')
-rw-r--r--ansible/common/handlers/main.yml5
-rw-r--r--ansible/common/handlers/reload-apache.yml3
-rw-r--r--ansible/common/handlers/restart-apache.yml3
-rw-r--r--ansible/common/handlers/started-apache.yml3
-rw-r--r--ansible/common/handlers/stop-apache.yml3
5 files changed, 17 insertions, 0 deletions
diff --git a/ansible/common/handlers/main.yml b/ansible/common/handlers/main.yml
new file mode 100644
index 0000000..9862b0a
--- /dev/null
+++ b/ansible/common/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- include: reload-apache.yml
+- include: stop-apache.yml
+- include: started-apache.yml
+- include: restart-apache.yml
diff --git a/ansible/common/handlers/reload-apache.yml b/ansible/common/handlers/reload-apache.yml
new file mode 100644
index 0000000..630dcb2
--- /dev/null
+++ b/ansible/common/handlers/reload-apache.yml
@@ -0,0 +1,3 @@
+---
+- name: reload-apache
+ service: name=apache2 state=reloaded
diff --git a/ansible/common/handlers/restart-apache.yml b/ansible/common/handlers/restart-apache.yml
new file mode 100644
index 0000000..34acdc4
--- /dev/null
+++ b/ansible/common/handlers/restart-apache.yml
@@ -0,0 +1,3 @@
+---
+- name: restart-apache
+ service: name=apache2 state=restarted
diff --git a/ansible/common/handlers/started-apache.yml b/ansible/common/handlers/started-apache.yml
new file mode 100644
index 0000000..f45ee21
--- /dev/null
+++ b/ansible/common/handlers/started-apache.yml
@@ -0,0 +1,3 @@
+---
+- name: started-apache
+ service: name=apache2 state=started
diff --git a/ansible/common/handlers/stop-apache.yml b/ansible/common/handlers/stop-apache.yml
new file mode 100644
index 0000000..6bf18e8
--- /dev/null
+++ b/ansible/common/handlers/stop-apache.yml
@@ -0,0 +1,3 @@
+---
+- name: stop-apache
+ service: name=apache2 state=stopped