13 lines
271 B
YAML
13 lines
271 B
YAML
---
|
|
- 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
|