2026-10-02 21:34:01 +04:00
|
|
|
---
|
|
|
|
|
- name: check nginx config
|
|
|
|
|
ansible.builtin.command: nginx -t
|
|
|
|
|
changed_when: false
|
|
|
|
|
listen: restart nginx
|
|
|
|
|
|
|
|
|
|
- name: restart nginx systemd service unit
|
|
|
|
|
ansible.builtin.systemd_service:
|
|
|
|
|
name: nginx
|
|
|
|
|
state: restarted
|
|
|
|
|
enabled: true
|
|
|
|
|
listen: restart nginx
|