Add nginx_enable variable
Users can now choose to only install NGINX Unit
This commit is contained in:
parent
ba8e65d6df
commit
c57e0a79d2
16
README.md
16
README.md
@ -102,6 +102,10 @@ Role Variables
|
|||||||
This role has multiple variables. The defaults for all these variables are the following:
|
This role has multiple variables. The defaults for all these variables are the following:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
# Install NGINX.
|
||||||
|
# Default is true.
|
||||||
|
nginx_enable: true
|
||||||
|
|
||||||
# Specify which version of NGINX you want to install.
|
# Specify which version of NGINX you want to install.
|
||||||
# Options are 'opensource' or 'plus'.
|
# Options are 'opensource' or 'plus'.
|
||||||
# Default is 'opensource'.
|
# Default is 'opensource'.
|
||||||
@ -131,12 +135,6 @@ This role has multiple variables. The defaults for all these variables are the f
|
|||||||
# Default is mainline.
|
# Default is mainline.
|
||||||
branch: mainline
|
branch: mainline
|
||||||
|
|
||||||
# Install NGINX Unit and NGINX Unit modules.
|
|
||||||
# Use a list of supported NGINX Unit modules.
|
|
||||||
# Default is false.
|
|
||||||
unit_enable: false
|
|
||||||
unit_modules: null
|
|
||||||
|
|
||||||
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
|
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
|
||||||
# Default is false.
|
# Default is false.
|
||||||
modules:
|
modules:
|
||||||
@ -195,6 +193,12 @@ This role has multiple variables. The defaults for all these variables are the f
|
|||||||
stream_template_enable: false
|
stream_template_enable: false
|
||||||
stream_template_listen: 12345
|
stream_template_listen: 12345
|
||||||
|
|
||||||
|
# Install NGINX Unit and NGINX Unit modules.
|
||||||
|
# Use a list of supported NGINX Unit modules.
|
||||||
|
# Default is false.
|
||||||
|
unit_enable: false
|
||||||
|
unit_modules: null
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
# Install NGINX.
|
||||||
|
# Default is true.
|
||||||
|
nginx_enable: true
|
||||||
|
|
||||||
# Specify which version of NGINX you want to install.
|
# Specify which version of NGINX you want to install.
|
||||||
# Options are 'opensource' or 'plus'.
|
# Options are 'opensource' or 'plus'.
|
||||||
# Default is 'opensource'.
|
# Default is 'opensource'.
|
||||||
@ -28,12 +32,6 @@ nginx_repository:
|
|||||||
# Default is mainline.
|
# Default is mainline.
|
||||||
branch: mainline
|
branch: mainline
|
||||||
|
|
||||||
# Install NGINX Unit and NGINX Unit modules.
|
|
||||||
# Use a list of supported NGINX Unit modules.
|
|
||||||
# Default is false.
|
|
||||||
unit_enable: false
|
|
||||||
unit_modules: null
|
|
||||||
|
|
||||||
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
|
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
|
||||||
# Default is false.
|
# Default is false.
|
||||||
modules:
|
modules:
|
||||||
@ -91,3 +89,9 @@ http_template_listen: 80
|
|||||||
http_template_server_name: localhost
|
http_template_server_name: localhost
|
||||||
stream_template_enable: false
|
stream_template_enable: false
|
||||||
stream_template_listen: 12345
|
stream_template_listen: 12345
|
||||||
|
|
||||||
|
# Install NGINX Unit and NGINX Unit modules.
|
||||||
|
# Use a list of supported NGINX Unit modules.
|
||||||
|
# Default is false.
|
||||||
|
unit_enable: false
|
||||||
|
unit_modules: null
|
||||||
|
@ -5,47 +5,52 @@
|
|||||||
- import_tasks: keys/rpm-key.yml
|
- import_tasks: keys/rpm-key.yml
|
||||||
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
|
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
|
||||||
|
|
||||||
- import_tasks: opensource/install-oss.yml
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
||||||
|
block:
|
||||||
|
|
||||||
|
- import_tasks: opensource/install-oss.yml
|
||||||
when: type == "opensource"
|
when: type == "opensource"
|
||||||
|
|
||||||
- import_tasks: plus/install-plus.yml
|
- import_tasks: plus/install-plus.yml
|
||||||
when: type == "plus"
|
when: type == "plus"
|
||||||
|
|
||||||
- import_tasks: modules/install-njs.yml
|
- import_tasks: modules/install-njs.yml
|
||||||
when: modules.njs
|
when: modules.njs
|
||||||
|
|
||||||
- import_tasks: modules/install-perl.yml
|
- import_tasks: modules/install-perl.yml
|
||||||
when: modules.perl
|
when: modules.perl
|
||||||
|
|
||||||
- import_tasks: modules/install-geoip.yml
|
- import_tasks: modules/install-geoip.yml
|
||||||
when: modules.geoip
|
when: modules.geoip
|
||||||
|
|
||||||
- import_tasks: modules/install-image-filter.yml
|
- import_tasks: modules/install-image-filter.yml
|
||||||
when: modules.image_filter
|
when: modules.image_filter
|
||||||
|
|
||||||
- import_tasks: modules/install-rtmp.yml
|
- import_tasks: modules/install-rtmp.yml
|
||||||
when: modules.rtmp
|
when: modules.rtmp
|
||||||
|
|
||||||
- import_tasks: modules/install-xslt.yml
|
- import_tasks: modules/install-xslt.yml
|
||||||
when: modules.xslt
|
when: modules.xslt
|
||||||
|
|
||||||
- import_tasks: modules/install-waf.yml
|
- import_tasks: modules/install-waf.yml
|
||||||
when: modules.waf and type == "plus"
|
when: modules.waf and type == "plus"
|
||||||
|
|
||||||
- import_tasks: conf/push-config.yml
|
- import_tasks: conf/push-config.yml
|
||||||
when: main_push_enable or http_push_enable or stream_push_enable
|
when: main_push_enable or http_push_enable or stream_push_enable
|
||||||
|
|
||||||
- import_tasks: conf/template-config.yml
|
- import_tasks: conf/template-config.yml
|
||||||
when: main_template_enable or http_template_enable or stream_template_enable
|
when: main_template_enable or http_template_enable or stream_template_enable
|
||||||
|
|
||||||
- import_tasks: conf/setup-status.yml
|
- import_tasks: conf/setup-status.yml
|
||||||
when: status_enable
|
when: status_enable
|
||||||
|
|
||||||
- import_tasks: conf/setup-rest-api.yml
|
- import_tasks: conf/setup-rest-api.yml
|
||||||
when: rest_api_enable and type == "plus"
|
when: rest_api_enable and type == "plus"
|
||||||
|
|
||||||
- import_tasks: amplify/install-amplify.yml
|
- import_tasks: amplify/install-amplify.yml
|
||||||
when: amplify_enable and amplify_key is defined and amplify_key
|
when: amplify_enable and amplify_key is defined and amplify_key
|
||||||
|
|
||||||
|
when: nginx_enable
|
||||||
|
|
||||||
- import_tasks: unit/install-unit.yml
|
- import_tasks: unit/install-unit.yml
|
||||||
when: unit_enable
|
when: unit_enable
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: ""
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- import_tasks: setup-debian.yml
|
- import_tasks: setup-debian.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user