aboutsummaryrefslogtreecommitdiff
path: root/roles/apache/handlers
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-02 01:02:31 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-02 01:02:31 +0200
commit2e3a53d879ef17f2e4afcce9e6b7f121ab25c571 (patch)
tree6f75bcb2af9dcc5c975ffa0d3438023ad8abf8ca /roles/apache/handlers
parenta024ad57e94976f7541bdd352e2d0a364c2aa5fb (diff)
downloadansible_collection-2e3a53d879ef17f2e4afcce9e6b7f121ab25c571.tar.gz
add apache role
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 }}'