ansible-role-nginx/handlers/main.yml

41 lines
811 B
YAML
Raw Normal View History

2018-01-10 23:40:01 +01:00
---
- name: "(Handler: All OSs) Run NGINX"
block:
2018-01-10 23:40:01 +01:00
- name: "(Handler: All OSs) Start NGINX"
service:
name: nginx
state: started
enabled: yes
2018-04-07 01:32:48 +02:00
- name: "(Handler: All OSs) Reload NGINX"
service:
name: nginx
state: reloaded
when:
- nginx_start | bool
- not ansible_check_mode
- name: "(Handler: All OSs) Start NGINX Amplify Agent"
service:
name: amplify-agent
state: started
2018-07-18 23:59:14 +02:00
- name: "(Handler: All OSs) Start NGINX Controller Agent"
service:
name: controller-agent
state: started
- 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