Merge pull request #112 from pillarsdotnet/master

Make starting the nginx service optional.
This commit is contained in:
Grzegorz Dzien 2019-03-29 16:24:55 +00:00 committed by GitHub
commit 1cf74a5d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -170,6 +170,10 @@ This role has multiple variables. The defaults for all these variables are the f
# 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

View File

@ -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

View File

@ -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