Merge pull request #112 from pillarsdotnet/master
Make starting the nginx service optional.
This commit is contained in:
commit
1cf74a5d5e
@ -170,6 +170,10 @@ This role has multiple variables. The defaults for all these variables are the f
|
|||||||
# Default is true.
|
# Default is true.
|
||||||
nginx_enable: true
|
nginx_enable: true
|
||||||
|
|
||||||
|
# Start NGINX service.
|
||||||
|
# Default is true.
|
||||||
|
nginx_start: true
|
||||||
|
|
||||||
# Print NGINX configuration file to terminal after executing playbook.
|
# Print NGINX configuration file to terminal after executing playbook.
|
||||||
nginx_debug_output: false
|
nginx_debug_output: false
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
# Default is true.
|
# Default is true.
|
||||||
nginx_enable: true
|
nginx_enable: true
|
||||||
|
|
||||||
|
# Start NGINX service.
|
||||||
|
# Default is true
|
||||||
|
nginx_start: true
|
||||||
|
|
||||||
# Print NGINX configuration file to terminal after executing playbook.
|
# Print NGINX configuration file to terminal after executing playbook.
|
||||||
nginx_debug_output: false
|
nginx_debug_output: false
|
||||||
|
|
||||||
|
@ -4,30 +4,36 @@
|
|||||||
name: nginx
|
name: nginx
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: nginx_start
|
||||||
|
|
||||||
- name: "(Handler: All OSs) Reload NGINX"
|
- name: "(Handler: All OSs) Reload NGINX"
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
when: nginx_start
|
||||||
|
|
||||||
- name: "(Handler: All OSs) Start NGINX Amplify Agent"
|
- name: "(Handler: All OSs) Start NGINX Amplify Agent"
|
||||||
service:
|
service:
|
||||||
name: amplify-agent
|
name: amplify-agent
|
||||||
state: started
|
state: started
|
||||||
|
when: nginx_start
|
||||||
|
|
||||||
- name: "(Handler: All OSs) Start NGINX Controller Agent"
|
- name: "(Handler: All OSs) Start NGINX Controller Agent"
|
||||||
service:
|
service:
|
||||||
name: controller-agent
|
name: controller-agent
|
||||||
state: started
|
state: started
|
||||||
|
when: nginx_start
|
||||||
|
|
||||||
- name: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
|
- name: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
|
||||||
service:
|
service:
|
||||||
name: unit
|
name: unit
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: nginx_start
|
||||||
|
|
||||||
- name: "(Handler: FreeBSD) Start NGINX Unit"
|
- name: "(Handler: FreeBSD) Start NGINX Unit"
|
||||||
service:
|
service:
|
||||||
name: unitd
|
name: unitd
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: nginx_start
|
||||||
|
Loading…
Reference in New Issue
Block a user