Issue239 - fix nginx_version in module install (#240)

This commit is contained in:
Tom Gamull 2020-04-17 18:40:35 -04:00 committed by GitHub
parent 2289b6a070
commit 301416a9c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 13 deletions

View File

@ -17,7 +17,9 @@ nginx_type: opensource
# Specify which version of NGINX you want to install. # Specify which version of NGINX you want to install.
# Default is empty. # Default is empty.
# nginx_version: =19-1~bionic # nginx_version: "=19-1~bionic"
# For Plus and modules you'll need a wilcard like below (which installs plus-20 and modules)
# nginx_version: "-20*"
# Specify whether you want to maintain your version of NGINX, upgrade to the latest version, or remove NGINX. # Specify whether you want to maintain your version of NGINX, upgrade to the latest version, or remove NGINX.
# Can be used with `nginx_version` to achieve fine tune control on which version of NGINX is installed/used on each playbook execution. # Can be used with `nginx_version` to achieve fine tune control on which version of NGINX is installed/used on each playbook execution.

View File

@ -7,13 +7,13 @@
- name: "(Install: All OSs) Install NGINX Open Source GeoIP Module" - name: "(Install: All OSs) Install NGINX Open Source GeoIP Module"
package: package:
name: nginx-module-geoip name: "nginx-module-geoip{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "opensource" when: nginx_type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus GeoIP Module" - name: "(Install: All OSs) Install NGINX Plus GeoIP Module"
package: package:
name: nginx-plus-module-geoip name: "nginx-plus-module-geoip{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "plus" when: nginx_type == "plus"

View File

@ -1,13 +1,13 @@
--- ---
- name: "(Install: All OSs) Install NGINX Open Source Image Filter Module" - name: "(Install: All OSs) Install NGINX Open Source Image Filter Module"
package: package:
name: nginx-module-image-filter name: "nginx-module-image-filter{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "opensource" when: nginx_type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus Image Filter Module" - name: "(Install: All OSs) Install NGINX Plus Image Filter Module"
package: package:
name: nginx-plus-module-image-filter name: "nginx-plus-module-image-filter{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "plus" when: nginx_type == "plus"

View File

@ -1,13 +1,13 @@
--- ---
- name: "(Install: All OSs) Install NGINX Open Source JavaScript Module" - name: "(Install: All OSs) Install NGINX Open Source JavaScript Module"
package: package:
name: nginx-module-njs name: "nginx-module-njs{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "opensource" when: nginx_type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus JavaScript Module" - name: "(Install: All OSs) Install NGINX Plus JavaScript Module"
package: package:
name: nginx-plus-module-njs name: "nginx-plus-module-njs{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "plus" when: nginx_type == "plus"

View File

@ -6,13 +6,13 @@
- name: "(Install: All OSs) Install NGINX Open Source Perl Module" - name: "(Install: All OSs) Install NGINX Open Source Perl Module"
package: package:
name: nginx-module-perl name: "nginx-module-perl{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "opensource" when: nginx_type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus Perl Module" - name: "(Install: All OSs) Install NGINX Plus Perl Module"
package: package:
name: nginx-plus-module-perl name: "nginx-plus-module-perl{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "plus" when: nginx_type == "plus"

View File

@ -1,7 +1,7 @@
--- ---
- name: "(Install: All OSs) Install NGINX Plus RTMP Module" - name: "(Install: All OSs) Install NGINX Plus RTMP Module"
package: package:
name: nginx-plus-module-rtmp name: "nginx-plus-module-rtmp{{ nginx_version | default('') }}"
state: present state: present
- name: "(Setup: All NGINX) Load NGINX RTMP Module" - name: "(Setup: All NGINX) Load NGINX RTMP Module"

View File

@ -1,7 +1,7 @@
--- ---
- name: "(Install: All OSs) Install NGINX Plus WAF Module" - name: "(Install: All OSs) Install NGINX Plus WAF Module"
package: package:
name: nginx-plus-module-modsecurity name: "nginx-plus-module-modsecurity{{ nginx_version | default('') }}"
state: present state: present
- name: "(Setup: NGINX Plus) Load NGINX Plus WAF Module" - name: "(Setup: NGINX Plus) Load NGINX Plus WAF Module"

View File

@ -1,13 +1,13 @@
--- ---
- name: "(Install: All OSs) Install NGINX Open Source XSLT Module" - name: "(Install: All OSs) Install NGINX Open Source XSLT Module"
package: package:
name: nginx-module-xslt name: "nginx-module-xslt{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "opensource" when: nginx_type == "opensource"
- name: "(Install: All OSs) Install NGINX Plus XSLT Module" - name: "(Install: All OSs) Install NGINX Plus XSLT Module"
package: package:
name: nginx-plus-module-xslt name: "nginx-plus-module-xslt{{ nginx_version | default('') }}"
state: present state: present
when: nginx_type == "plus" when: nginx_type == "plus"