2018-01-19 19:27:47 +01:00
|
|
|
---
|
2018-04-12 19:20:39 +02:00
|
|
|
- name: "(Install: All OSs) Install NGINX Open Source JavaScript Module"
|
2018-01-19 19:27:47 +01:00
|
|
|
package:
|
|
|
|
name: nginx-module-njs
|
|
|
|
state: present
|
|
|
|
when: type == "opensource"
|
|
|
|
|
2018-04-12 19:20:39 +02:00
|
|
|
- name: "(Install: All OSs) Install NGINX Plus JavaScript Module"
|
2018-01-19 19:27:47 +01:00
|
|
|
package:
|
|
|
|
name: nginx-plus-module-njs
|
|
|
|
state: present
|
|
|
|
when: type == "plus"
|
|
|
|
|
2018-04-12 19:20:39 +02:00
|
|
|
- name: "(Setup: All NGINX) Load NGINX JavaScript Module"
|
2018-01-19 19:27:47 +01:00
|
|
|
blockinfile:
|
|
|
|
path: /etc/nginx/nginx.conf
|
|
|
|
insertbefore: BOF
|
|
|
|
block: |
|
|
|
|
load_module modules/ngx_http_js_module.so;
|
|
|
|
load_module modules/ngx_stream_js_module.so;
|
2018-01-26 20:00:26 +01:00
|
|
|
notify: "(Handler: All OSs) Reload NGINX"
|