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
+93-25Lines changed: 93 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Use `ansible-galaxy install nginxinc.nginx` to install the role on your system.
17
17
18
18
It supports all platforms supported by [NGINX Open Source](https://nginx.org/en/linux_packages.html#mainline) and [NGINX Plus](https://www.nginx.com/products/technical-specs/):
19
19
20
-
**NGINX Open Source:**
20
+
**NGINX Open Source**
21
21
22
22
```yaml
23
23
CentOS:
@@ -47,7 +47,7 @@ FreeBSD:
47
47
- 11
48
48
```
49
49
50
-
**NGINX Plus:**
50
+
**NGINX Plus**
51
51
52
52
```yaml
53
53
CentOS:
@@ -84,7 +84,52 @@ FreeBSD:
84
84
- 11
85
85
```
86
86
87
-
**NGINX Unit:**
87
+
**NGINX Amplify**
88
+
89
+
```yaml
90
+
CentOS:
91
+
versions:
92
+
- 6
93
+
- 7
94
+
RedHat:
95
+
versions:
96
+
- 6
97
+
- 7
98
+
Debian:
99
+
versions:
100
+
- jessie
101
+
- stretch
102
+
Ubuntu:
103
+
versions:
104
+
- trusty
105
+
- xenial
106
+
- artful
107
+
- bionic
108
+
Amazon Linux:
109
+
versions:
110
+
- 2017.09
111
+
```
112
+
113
+
**NGINX Controller**
114
+
115
+
```yaml
116
+
CentOS:
117
+
versions:
118
+
- 7
119
+
RedHat:
120
+
versions:
121
+
- 7
122
+
Debian:
123
+
versions:
124
+
- jessie
125
+
- stretch
126
+
Ubuntu:
127
+
versions:
128
+
- xenial
129
+
- artful
130
+
```
131
+
132
+
**NGINX Unit**
88
133
89
134
```yaml
90
135
CentOS:
@@ -154,6 +199,16 @@ nginx_repository:
154
199
# Default is mainline.
155
200
branch: mainline
156
201
202
+
# Location of your NGINX Plus license in your local machine.
203
+
# Default is the files folder within the NGINX Ansible role.
204
+
license:
205
+
certificate: license/nginx-repo.crt
206
+
key: license/nginx-repo.key
207
+
208
+
# Delete NGINX Plus license after installation for security purposes.
209
+
# Default is true.
210
+
delete_license: true
211
+
157
212
# Install NGINX JavaScript, Perl, ModSecurity WAF (NGINX Plus only), GeoIP, Image-Filter, RTMP Media Streaming, and/or XSLT modules.
158
213
# Default is false.
159
214
modules:
@@ -171,27 +226,32 @@ modules:
171
226
amplify_enable: false
172
227
amplify_key: null
173
228
229
+
# Install NGINX Controller.
230
+
# Use your NGINX Controller API key and NGINX Controller API endpoint.
231
+
# Requires NGINX Plus.
232
+
# Default is null.
233
+
controller_enable: false
234
+
controller_api_key: null
235
+
controller_api_endpoint: null
236
+
237
+
# Install NGINX Unit and NGINX Unit modules.
238
+
# Use a list of supported NGINX Unit modules.
239
+
# Default is false.
240
+
unit_enable: false
241
+
unit_modules: null
242
+
174
243
# Enable NGINX status data.
175
244
# Will enable 'stub_status' in NGINX Open Source and 'status' in NGINX Plus.
176
245
# Default is false.
177
246
status_enable: false
178
247
179
248
# Enable NGINX Plus REST API, write access to the REST API, and NGINX Plus dashboard.
249
+
# Requires NGINX Plus.
180
250
# Default is false.
181
251
rest_api_enable: false
182
252
rest_api_write: false
183
253
rest_api_dashboard: false
184
254
185
-
# Location of your NGINX Plus license in your local machine.
186
-
# Default is the files folder within the NGINX Ansible role.
187
-
license:
188
-
certificate: license/nginx-repo.crt
189
-
key: license/nginx-repo.key
190
-
191
-
# Delete NGINX Plus license after installation for security purposes.
192
-
# Default is true.
193
-
delete_license: true
194
-
195
255
# Enable uploading NGINX configuration files to your system.
196
256
# Default for uploading files is false.
197
257
# Default location of files is the files folder within the NGINX Ansible role.
@@ -215,12 +275,6 @@ http_template_listen: 80
215
275
http_template_server_name: localhost
216
276
stream_template_enable: false
217
277
stream_template_listen: 12345
218
-
219
-
# Install NGINX Unit and NGINX Unit modules.
220
-
# Use a list of supported NGINX Unit modules.
221
-
# Default is false.
222
-
unit_enable: false
223
-
unit_modules: null
224
278
```
225
279
226
280
Dependencies
@@ -241,6 +295,16 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
241
295
- role: nginxinc.nginx
242
296
```
243
297
298
+
This is a sample playbook file for deploying the Ansible Galaxy NGINX role to a dynamic inventory containing the `nginx` tag.
299
+
300
+
```yaml
301
+
---
302
+
- hosts: tag_nginx
303
+
remote_user: root
304
+
roles:
305
+
- role: nginxinc.nginx
306
+
```
307
+
244
308
This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a localhost and installing NGINX Plus.
245
309
246
310
```yaml
@@ -253,19 +317,23 @@ This is a sample playbook file for deploying the Ansible Galaxy NGINX role in a
253
317
type: plus
254
318
```
255
319
256
-
This is a sample playbook file for deploying the Ansible Galaxy NGINX role to a dynamic inventory containing the `nginx` tag.
320
+
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.
257
321
258
-
```yml
259
-
---
260
-
- hosts: tag_nginx
261
-
remote_user: root
322
+
```yaml
323
+
- hosts: localhost
324
+
become: true
262
325
roles:
263
326
- role: nginxinc.nginx
327
+
vars:
328
+
type: plus
329
+
controller_enable: true
330
+
controller_api_key: <API_KEY_HERE>
331
+
controller_api_endpoint: https://<FQDN>/1.4
264
332
```
265
333
266
334
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.
0 commit comments