Add configuration variable for starting nginx service.
This commit is contained in:
parent
a68ddd708d
commit
58b3b71077
@ -3,6 +3,10 @@
|
||||
# Default is true.
|
||||
nginx_enable: true
|
||||
|
||||
# Start NGINX service.
|
||||
# Default is true
|
||||
nginx_start: true
|
||||
|
||||
# Print NGINX configuration file to terminal after executing playbook.
|
||||
nginx_debug_output: false
|
||||
|
||||
|
@ -4,30 +4,36 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user