ansible-role-nginx/handlers/main.yml

40 lines
783 B
YAML
Raw Normal View History

2018-01-10 23:40:01 +01:00
---
- name: "(Handler: All OSs) Start NGINX"
2018-01-10 23:40:01 +01:00
service:
name: nginx
state: started
2018-08-21 10:24:25 +02:00
enabled: yes
when: nginx_start
2018-01-10 23:40:01 +01:00
- name: "(Handler: All OSs) Reload NGINX"
2018-01-10 23:40:01 +01:00
service:
name: nginx
state: reloaded
when: nginx_start
2018-04-07 01:32:48 +02:00
- 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
2018-07-18 23:59:14 +02:00
- name: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
2018-04-07 01:32:48 +02:00
service:
2018-07-19 00:32:56 +02:00
name: unit
2018-07-18 23:59:14 +02:00
state: started
enabled: yes
when: nginx_start
2018-07-18 23:59:14 +02:00
- name: "(Handler: FreeBSD) Start NGINX Unit"
service:
name: unitd
2018-04-07 01:32:48 +02:00
state: started
enabled: yes
when: nginx_start