diff options
Diffstat (limited to 'roles/apache/handlers/main.yml')
-rw-r--r-- | roles/apache/handlers/main.yml | 20 |
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 }}' |