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
* The Debian and Ubuntu repositories have slightly changed. You may run into some duplication issues when running the role on a preexisting target that already has had NGINX installed using the role. To fix this, manually remove the old repository source.
8
8
* If you use `custom_options` you will now need to manually end each directive with a semicolon.
9
+
* The listen directive structure in the `stream` template has been updated to the listen directive structure found in the `http` template. You can now specify multiple `listen` directives in the same `server` block as well as include any extra `listen` options you might need.
10
+
11
+
Old configuration example
12
+
```yaml
13
+
listen_address: localhost
14
+
listen_port: 80
15
+
udp_enable: false
16
+
```
17
+
18
+
New configuration example
19
+
```yaml
20
+
listen:
21
+
listen_localhost:
22
+
ip: 0.0.0.0 # Wrap in square brackets for IPv6 addresses
23
+
port: 80
24
+
ssl: false
25
+
opts: [] # Listen opts like udp which will be added (ssl is automatically added if you specify 'ssl:').
26
+
```
27
+
28
+
The one major change is that instead of using `udp_enable: true` you will now need to use `opts: [udp]` if you wish to enable `udp`.
9
29
10
30
FEATURES:
11
31
12
-
* Add support to configure logrotate
13
-
* Add support for Ubuntu Focal
14
-
* Add support to configure SELinux
15
-
* Two new variables have been introduced -- `nginx_install` and `nginx_configure` -- to let you choose whether you want to install NGINX, configure NGINX, or both
32
+
* Add support to configure logrotate.
33
+
* Add support for Ubuntu Focal.
34
+
* Add support to configure SELinux.
35
+
* Two new variables have been introduced -- `nginx_install` and `nginx_configure` -- to let you choose whether you want to install NGINX, configure NGINX, or both.
16
36
17
37
ENHANCEMENTS:
18
38
19
-
* The role now uses `include_tasks` instead of `import_tasks` when possible to speed up the role's execution time
39
+
* Molecule tests using Testinfra have been migrated to use Ansible instead.
40
+
* The role now uses `include_tasks` instead of `import_tasks` when possible to speed up the role's execution time.
20
41
* Improve configuration templating capabilities:
21
-
* Add support for unix upstreams
22
-
* Add PID templating option
23
-
* Add support for down parameter in upstreams
24
-
* Add option for custom error pages
42
+
* Add support for unix upstreams.
43
+
* Add PID templating option.
44
+
* Add support for down parameter in upstreams.
45
+
* Add option for custom error pages.
46
+
* Add SSL support to `stream` contexts.
25
47
26
48
BUG FIXES:
27
49
28
-
*`nginx_debug_output` would sometimes fail if the NGINX had not been automatically started by the system upon installation
29
-
* If `http_demo_conf` was undefined the web server template interpolation would fail
50
+
* `nginx_debug_output` would sometimes fail if NGINX had not been automatically started by the system upon installation.
51
+
* If `http_demo_conf` was undefined the web server template interpolation would fail.
30
52
31
53
## 0.14.0 (April 22, 2020)
32
54
@@ -38,15 +60,15 @@ BREAKING CHANGES:
38
60
39
61
FEATURES:
40
62
41
-
* Install/build NGINX from source options now available
42
-
* Implement NGINX http sub module templating
43
-
* NGINX config is now correctly validated each run
44
-
* SSL Private Key data is hidden when running the role with the --diff flag
63
+
* Install/build NGINX from source options now available.
64
+
* Implement NGINX http sub module templating.
65
+
* NGINX config is now correctly validated each run.
66
+
* SSL Private Key data is hidden when running the role with the `--diff` flag.
45
67
46
68
BUG FIXES:
47
69
48
-
* The role should no longer sporadically cause apt update to fail in amd64 systems when installing NGINX from an official repository
49
-
* Modules should now correctly install when using a specific NGINX Plus version
70
+
* The role should no longer sporadically cause apt update to fail in amd64 systems when installing NGINX from an official repository.
71
+
* Modules should now correctly install when using a specific NGINX Plus version.
50
72
51
73
## 0.13.0 (December 13, 2019)
52
74
@@ -58,163 +80,163 @@ BREAKING CHANGES:
58
80
FEATURES:
59
81
60
82
* Improve NGINX http templating:
61
-
* Multiple server support in HTTP contexts
62
-
* Header support
63
-
* OCSP stapling
64
-
* Improved proxy settings
65
-
* Logging settings
66
-
* Improved SSL settings
67
-
* Improved authentication settings
68
-
* Max body size support
69
-
* Improved listen templating
70
-
* Switch to Molecule for testing
71
-
* Add support for Debian Buster
72
-
* Support for specifying which version of NGINX to install
73
-
* Split default variables into multiple functional files
74
-
* Improve support for Alpine distributions
75
-
* Support for updating or removing NGINX from your system
76
-
* Implemented tags to support running specific tasks instead of the whole role
83
+
* Multiple server support in HTTP contexts.
84
+
* Header support.
85
+
* OCSP stapling.
86
+
* Improved proxy settings.
87
+
* Logging settings.
88
+
* Improved SSL settings.
89
+
* Improved authentication settings.
90
+
* Max body size support.
91
+
* Improved listen templating.
92
+
* Switch to Molecule for testing.
93
+
* Add support for Debian Buster.
94
+
* Support for specifying which version of NGINX to install.
95
+
* Split default variables into multiple functional files.
96
+
* Improve support for Alpine distributions.
97
+
* Support for updating or removing NGINX from your system.
98
+
* Implemented tags to support running specific tasks instead of the whole role.
77
99
78
100
BUG FIXES:
79
101
80
-
* Module installation when using NGINX Plus has been fixed
81
-
* Websockets templating has been reenabled after being accidentally deleted
102
+
* Module installation when using NGINX Plus has been fixed.
103
+
* Websockets templating has been reenabled after being accidentally deleted.
82
104
* When deleting your NGINX Plus license from the system, the NGINX Plus repository will also be deleted to prevent issues further down the line if you run a repository update since there will not be a license anymore to authenticate into the NGINX Plus repository.
83
105
84
106
## 0.12.0 (May 22, 2019)
85
107
86
108
FEATURES:
87
109
88
110
* Improve NGINX http templating - following parameters are now supported:
89
-
* Websockets
90
-
* Basic authentication
91
-
* Proxy cache
92
-
* Proxy redirect
93
-
* Proxy timeouts
94
-
* SSL
95
-
* Root (in server context)
96
-
* Add basic NGINX stream templating
97
-
* Add support for RHEL 8 and Alpine Linux
111
+
* Websockets.
112
+
* Basic authentication.
113
+
* Proxy cache.
114
+
* Proxy redirect.
115
+
* Proxy timeouts.
116
+
* SSL.
117
+
* Root (in server context).
118
+
* Add basic NGINX stream templating.
119
+
* Add support for RHEL 8 and Alpine Linux.
98
120
99
121
BUG FIXES:
100
122
101
-
* Fix module installation tasks
123
+
* Fix module installation tasks.
102
124
103
125
## 0.11.0 (Januray 14, 2019)
104
126
105
127
FEATURES:
106
128
107
-
* Allow setting a custom apt and rpm signing key host
108
-
* Add support for enabling an http to https redirects
109
-
* Add ansible_managed to templates
110
-
* Rename html_app_name to web_server_name
111
-
* Rename load_balancer block to reverse_proxy
112
-
* Allow setting the listen port when using SSL
113
-
* Improve SSL defaults
114
-
* Allow setting http or https server locations in proxy_pass
129
+
* Allow setting a custom apt and rpm signing key host.
130
+
* Add support for enabling an http to https redirects.
131
+
* Add ansible_managed to templates.
132
+
* Rename html_app_name to web_server_name.
133
+
* Rename load_balancer block to reverse_proxy.
134
+
* Allow setting the listen port when using SSL.
135
+
* Improve SSL defaults.
136
+
* Allow setting http or https server locations in proxy_pass.
115
137
116
138
BUG FIXES:
117
139
118
-
* Ignore undefined values for autoindex and health check
119
-
* Clarify that the redirect variable refers to a http to https redirect
140
+
* Ignore undefined values for autoindex and health check.
141
+
* Clarify that the redirect variable refers to a http to https redirect.
120
142
121
143
## 0.10.1 (November 26, 2018)
122
144
123
145
BUG FIXES:
124
146
125
-
* Fix HTML template to use correct variable name
147
+
* Fix HTML template to use correct variable name.
126
148
127
149
## 0.10.0 (November 26, 2018)
128
150
129
151
FEATURES:
130
152
131
-
* Improve templating support for health checks, multiple location blocks, and auto indexing
153
+
* Improve templating support for health checks, multiple location blocks, and auto indexing.
132
154
133
155
BUG FIXES:
134
156
135
-
* Fetching the NGINX signing key is now more reliable
136
-
* Fixed HTML templating
157
+
* Fetching the NGINX signing key is now more reliable.
158
+
* Fixed HTML templating.
137
159
138
160
## 0.9.0 (October 18, 2018)
139
161
140
162
FEATURES:
141
163
142
-
* Refactor NGINX templating and file uploading
143
-
* Add ability to upload and template HTML files
144
-
* Add ability to upload SSL keys and certificates
164
+
* Refactor NGINX templating and file uploading.
165
+
* Add ability to upload and template HTML files.
166
+
* Add ability to upload SSL keys and certificates.
145
167
146
168
## 0.8.0 (September 17, 2018)
147
169
148
170
FEATURES:
149
171
150
-
* Add ability to install NGINX Plus Controller agent
151
-
* Refactor installation of NGINX Amplify agent
152
-
* Rename variables to be prefixed with `nginx_`
172
+
* Add ability to install NGINX Plus Controller agent.
173
+
* Refactor installation of NGINX Amplify agent.
174
+
* Rename variables to be prefixed with `nginx_`.
153
175
154
176
BUG FIXES:
155
177
156
-
* Correct spelling of name in `tasks/prerequisites/setup-debian.yml`
178
+
* Correct spelling of name in `tasks/prerequisites/setup-debian.yml`.
157
179
158
180
## 0.7.1 (August 21, 2018)
159
181
160
182
FEATURES:
161
183
162
-
* Add enabled parameter to NGINX and NGINX Unit handlers
184
+
* Add enabled parameter to NGINX and NGINX Unit handlers.
163
185
164
186
## 0.7.0 (August 4, 2018)
165
187
166
188
FEATURES:
167
189
168
-
* Add Amazon Linux 2 support for NGINX Plus
169
-
* Add ability to delete NGINX Plus license after installation
190
+
* Add Amazon Linux 2 support for NGINX Plus.
191
+
* Add ability to delete NGINX Plus license after installation.
170
192
171
193
BUG FIXES:
172
194
173
-
* GeoIP module can now be properly installed
174
-
* Module installation will no longer fail if only one module is specified
195
+
* GeoIP module can now be properly installed.
196
+
* Module installation will no longer fail if only one module is specified.
175
197
176
198
## 0.6.0 (July 19, 2018)
177
199
178
200
FEATURES:
179
201
180
-
* Improve NGINX Unit related documentation
181
-
* Add FreeBSD and Amazon Linux 2 support for NGINX Unit
182
-
* Allow users to install NGINX Unit without having to also install NGINX
202
+
* Improve NGINX Unit related documentation.
203
+
* Add FreeBSD and Amazon Linux 2 support for NGINX Unit.
204
+
* Allow users to install NGINX Unit without having to also install NGINX.
183
205
184
206
## 0.5.0 (June 28, 2018)
185
207
186
208
FEATURES:
187
209
188
-
* Add support for NGINX Unit
210
+
* Add support for NGINX Unit.
189
211
190
212
## 0.4.0 (May 25, 2018)
191
213
192
214
FEATURES:
193
215
194
-
* Implement support for FreeBSD
195
-
* Allow users to select the default NGINX repository
216
+
* Implement support for FreeBSD.
217
+
* Allow users to select the default NGINX repository.
196
218
197
219
## 0.3.0 (April 19, 2018)
198
220
199
221
FEATURES:
200
222
201
-
* Improve Travis CI testing strategy
223
+
* Improve Travis CI testing strategy.
202
224
203
225
BUG FIXES:
204
226
205
-
* Fix templating and push tasks
227
+
* Fix templating and push tasks.
206
228
207
229
## 0.2.0 (April 12, 2018)
208
230
209
231
FEATURES:
210
232
211
-
* Add support for all first party NGINX modules
233
+
* Add support for all first party NGINX modules.
212
234
213
235
BUG FIXES:
214
236
215
-
* Role should now work correctly in distros with old versions of Python
216
-
* Rest API configuration will now only be created when rest_api_enable is set to true (an empty file would be created in previous versions if rest_api_enable was set to false)
217
-
* Uploading/dynamically generating files should now result in the files being uploaded/created to/in the correct directory
237
+
* Role should now work correctly in distros with old versions of Python.
238
+
* Rest API configuration will now only be created when rest_api_enable is set to true (an empty file would be created in previous versions if rest_api_enable was set to false).
239
+
* Uploading/dynamically generating files should now result in the files being uploaded/created to/in the correct directory.
0 commit comments