Files

12 lines
271 B
YAML
Raw Permalink Normal View History

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