1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00
ansible_role_nginx/handlers/main.yml

17 lines
285 B
YAML
Raw Normal View History

2020-11-02 04:51:35 +01:00
---
- name: Restart nginx
2021-02-04 18:27:54 +01:00
become: true
ansible.builtin.systemd:
2020-11-02 04:51:35 +01:00
name: 'nginx.service'
2021-02-04 18:27:54 +01:00
daemon_reload: true
2020-11-02 04:51:35 +01:00
state: restarted
- name: systemctl reload nginx
2021-02-04 18:27:54 +01:00
become: true
ansible.builtin.systemd:
2020-11-02 04:51:35 +01:00
name: 'nginx.service'
2021-02-04 18:27:54 +01:00
daemon_reload: true
2020-11-02 04:51:35 +01:00
state: reloaded