ansible-role-nginx/handlers/main.yml

9 lines
140 B
YAML

---
- name: Start/Enable nginx
listen: "restart nginx"
ansible.builtin.systemd:
name: nginx
state: restarted
enabled: true