ansible-role-nginx/handlers/main.yml
2019-03-21 08:32:27 -04:00

40 lines
783 B
YAML

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