home-server/roles/dmz_nginx/handlers/main.yml

20 lines
582 B
YAML
Raw Normal View History

2018-09-03 20:06:05 +02:00
---
# The home-server project produces a multi-purpose setup using Ansible.
2023-07-30 19:31:56 +02:00
# Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
2018-09-03 20:06:05 +02:00
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: create tmpfiles
2023-07-30 19:31:56 +02:00
command: systemd-tmpfiles --create /etc/tmpfiles.d/run_http.conf
2018-09-03 20:06:05 +02:00
2023-12-30 16:32:52 +01:00
- name: restart openresty.service
2018-09-03 20:06:05 +02:00
systemd:
daemon_reload: true
2023-12-30 16:32:52 +01:00
name: openresty.service
2018-09-03 20:06:05 +02:00
state: restarted
- name: restart php-fpm.service
systemd:
daemon_reload: true
name: php-fpm.service
state: restarted