move handlers into main.yml file
This commit is contained in:
parent
c28df97cc1
commit
8ea23aec15
@ -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
|
|
||||||
11
main.yml
11
main.yml
@ -1,6 +1,17 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- name: restart httpd
|
||||||
|
service:
|
||||||
|
name: httpd
|
||||||
|
state: restarted
|
||||||
|
|
||||||
|
- name: restart php-fpm
|
||||||
|
service:
|
||||||
|
name: php-fpm
|
||||||
|
state: restarted
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
mail_relay_host: smtp.gmail.com
|
mail_relay_host: smtp.gmail.com
|
||||||
mail_domain: gmeech.dyndns.org
|
mail_domain: gmeech.dyndns.org
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user