aboutsummaryrefslogtreecommitdiff
path: root/roles/apache/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apache/handlers')
-rw-r--r--roles/apache/handlers/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/apache/handlers/main.yml b/roles/apache/handlers/main.yml
new file mode 100644
index 0000000..3cbcfcc
--- /dev/null
+++ b/roles/apache/handlers/main.yml
@@ -0,0 +1,20 @@
+---
+- name: Restart apache
+ systemd:
+ name: apache2.service
+ state: restarted
+ become: yes
+
+- name: Reload apache
+ systemd:
+ name: apache2.service
+ state: reloaded
+ become: yes
+
+- name: Restart fpm
+ systemd:
+ name: '{{ item }}-fpm'
+ state: restarted
+ enabled: yes
+ become: yes
+ loop: '{{ php_versions }}'