aboutsummaryrefslogtreecommitdiff
path: root/ansible/common/handlers
diff options
context:
space:
mode:
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