You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-44Lines changed: 44 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -173,13 +173,13 @@ nginx_enable: true
173
173
# Specify which version of NGINX you want to install.
174
174
# Options are 'opensource' or 'plus'.
175
175
# Default is 'opensource'.
176
-
type: opensource
176
+
nginx_type: opensource
177
177
178
178
# Specify repository origin for NGINX Open Source.
179
179
# Options are 'nginx_repository' or 'os_repository'.
180
-
# Only works if 'type' is set to 'opensource'.
180
+
# Only works if 'nginx_type' is set to 'opensource'.
181
181
# Default is nginx_repository.
182
-
install_from: nginx_repository
182
+
nginx_install_from: nginx_repository
183
183
184
184
# Specify source repository for NGINX Open Source.
185
185
# Only works if 'install_from' is set to 'nginx_repository'.
@@ -197,21 +197,21 @@ nginx_repository:
197
197
# Options are 'mainline' or 'stable'.
198
198
# Only works if 'install_from' is set to 'nginx_repository'.
199
199
# Default is mainline.
200
-
branch: mainline
200
+
nginx_branch: mainline
201
201
202
202
# Location of your NGINX Plus license in your local machine.
203
203
# Default is the files folder within the NGINX Ansible role.
204
-
license:
204
+
nginx_license:
205
205
certificate: license/nginx-repo.crt
206
206
key: license/nginx-repo.key
207
207
208
208
# Delete NGINX Plus license after installation for security purposes.
209
209
# Default is true.
210
-
delete_license: true
210
+
nginx_delete_license: true
211
211
212
212
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
213
213
# Default is false.
214
-
modules:
214
+
nginx_modules:
215
215
njs: false
216
216
perl: false
217
217
waf: false
@@ -224,58 +224,58 @@ modules:
224
224
# Use your NGINX Amplify API key.
225
225
# Requires access to either the NGINX stub status or the NGINX Plus REST API.
226
226
# Default is null.
227
-
amplify_enable: false
228
-
amplify_api_key: null
227
+
nginx_amplify_enable: false
228
+
nginx_amplify_api_key: null
229
229
230
230
# Install NGINX Controller.
231
231
# Use your NGINX Controller API key and NGINX Controller API endpoint.
232
232
# Requires NGINX Plus and write access to the NGINX Plus REST API.
233
233
# Default is null.
234
-
controller_enable: false
235
-
controller_api_key: null
236
-
controller_api_endpoint: null
234
+
nginx_controller_enable: false
235
+
nginx_controller_api_key: null
236
+
nginx_controller_api_endpoint: null
237
237
238
238
# Install NGINX Unit and NGINX Unit modules.
239
239
# Use a list of supported NGINX Unit modules.
240
240
# Default is false.
241
-
unit_enable: false
242
-
unit_modules: null
241
+
nginx_unit_enable: false
242
+
nginx_unit_modules: null
243
243
244
244
# Enable NGINX status data.
245
245
# Will enable 'stub_status' in NGINX Open Source and 'status' in NGINX Plus.
246
246
# Default is false.
247
-
status_enable: false
247
+
nginx_status_enable: false
248
248
249
249
# Enable NGINX Plus REST API, write access to the REST API, and NGINX Plus dashboard.
250
250
# Requires NGINX Plus.
251
251
# Default is false.
252
-
rest_api_enable: false
253
-
rest_api_write: false
254
-
rest_api_dashboard: false
252
+
nginx_rest_api_enable: false
253
+
nginx_rest_api_write: false
254
+
nginx_rest_api_dashboard: false
255
255
256
256
# Enable uploading NGINX configuration files to your system.
257
257
# Default for uploading files is false.
258
258
# Default location of files is the files folder within the NGINX Ansible role.
259
-
main_push_enable: false
260
-
main_push_location: conf/nginx.conf
261
-
http_push_enable: false
262
-
http_push_location: conf/http/*.conf
263
-
stream_push_enable: false
264
-
stream_push_location: conf/stream/*.conf
259
+
nginx_main_push_enable: false
260
+
nginx_main_push_location: conf/nginx.conf
261
+
nginx_http_push_enable: false
262
+
nginx_http_push_location: conf/http/*.conf
263
+
nginx_stream_push_enable: false
264
+
nginx_stream_push_location: conf/stream/*.conf
265
265
266
266
# Configuration variables to create a templated NGINX configuration.
267
267
# Defaults are the values found in a fresh NGINX installation.
268
-
main_template_enable: false
269
-
main_template_user: nginx
270
-
main_template_worker_processes: auto
271
-
main_template_error_level: warn
272
-
main_template_worker_connections: 1024
273
-
http_template_enable: false
274
-
http_template_keepalive_timeout: 65
275
-
http_template_listen: 80
276
-
http_template_server_name: localhost
277
-
stream_template_enable: false
278
-
stream_template_listen: 12345
268
+
nginx_main_template_enable: false
269
+
nginx_main_template_user: nginx
270
+
nginx_main_template_worker_processes: auto
271
+
nginx_main_template_error_level: warn
272
+
nginx_main_template_worker_connections: 1024
273
+
nginx_http_template_enable: false
274
+
nginx_http_template_keepalive_timeout: 65
275
+
nginx_http_template_listen: 80
276
+
nginx_http_template_server_name: localhost
277
+
nginx_stream_template_enable: false
278
+
nginx_stream_template_listen: 12345
279
279
```
280
280
281
281
Dependencies
@@ -315,7 +315,7 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
315
315
roles:
316
316
- role: nginxinc.nginx
317
317
vars:
318
-
type: plus
318
+
nginx_type: plus
319
319
```
320
320
321
321
This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a localhost to install NGINX Plus and the NGINX Controller agent.
@@ -326,12 +326,12 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
326
326
roles:
327
327
- role: nginxinc.nginx
328
328
vars:
329
-
type: plus
330
-
rest_api_enable: true
331
-
rest_api_write: true
332
-
controller_enable: true
333
-
controller_api_key: <API_KEY_HERE>
334
-
controller_api_endpoint: https://<FQDN>/1.4
329
+
nginx_type: plus
330
+
nginx_rest_api_enable: true
331
+
nginx_rest_api_write: true
332
+
nginx_controller_enable: true
333
+
nginx_controller_api_key: <API_KEY_HERE>
334
+
nginx_controller_api_endpoint: https://<FQDN>/1.4
335
335
```
336
336
337
337
This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a localhost to install NGINX Unit and the PHP/Perl NGINX Unit language modules.
@@ -344,8 +344,8 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
0 commit comments