move handlers into main.yml file

This commit is contained in:
Gilles Mouchet 2024-06-23 08:08:53 +02:00
parent c28df97cc1
commit 8ea23aec15
2 changed files with 11 additions and 12 deletions

View File

@ -1,12 +0,0 @@
---
- name: restart httpd
service:
name: httpd
state: restarted
become: true
- name: restart php-fpm
service:
name: php-fpm
state: restarted
become: true

View File

@ -1,5 +1,16 @@
---
- hosts: localhost
handlers:
- name: restart httpd
service:
name: httpd
state: restarted
- name: restart php-fpm
service:
name: php-fpm
state: restarted
vars:
mail_relay_host: smtp.gmail.com