aboutsummaryrefslogtreecommitdiff
path: root/roles/nginx/handlers/main.yml
blob: 3940edbeaecee2bcc52711c2c2e21bbe484ad0ab (plain)
1
2
3
4
5
6
7
8
9
10
11
---
- name: Validate and reload nginx
  ansible.builtin.command: /usr/sbin/nginx -t
  changed_when: false
  notify: Reload nginx service

- name: Reload nginx service
  ansible.builtin.systemd:
    name: nginx.service
    state: reloaded
  listen: Reload nginx