d0548a7b0b
There's now a separate collection of NGINX Controller roles that can be found at https://github.com/nginxinc/ansible-collection-nginx_controller making the task in this role obsolete
36 lines
695 B
YAML
36 lines
695 B
YAML
---
|
|
- name: "(Handler: All OSs) Run NGINX"
|
|
block:
|
|
|
|
- name: "(Handler: All OSs) Start NGINX"
|
|
service:
|
|
name: nginx
|
|
state: started
|
|
enabled: yes
|
|
|
|
- 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
|
|
|
|
- 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
|