ansible-role-nginx/handlers/main.yml
2018-09-10 16:05:25 -07:00

29 lines
553 B
YAML

---
- name: "(Handler: All OSs) Start NGINX"
service:
name: nginx
state: started
enabled: yes
- name: "(Handler: All OSs) Reload NGINX"
service:
name: nginx
state: reloaded
- name: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
service:
name: unit
state: started
enabled: yes
- name: "(Handler: FreeBSD) Start NGINX Unit"
service:
name: unitd
state: started
enabled: yes
- name: "(Handler: All OSs) Start NGINX Controller Agent"
service:
name: controller-agent
state: started