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
(For RedHat/CentOS only) Set this to `false` to disable the installation of the `nginx` yum repository. This could be necessary if you want the default OS stable packages, or if you use Satellite.
123
124
125
+
## Overriding configuration templates
126
+
127
+
If you can't customize via variables because an option isn't exposed, you can override the template used to generate the virtualhost configuration files or the `nginx.conf` file.
128
+
129
+
```yaml
130
+
nginx_conf_template: "nginx.conf.j2"
131
+
nginx_vhost_template: "vhost.j2"
132
+
```
133
+
134
+
If necessary you can also set the template on a per vhost basis.
You can either copy and modify the provided template, or extend it with [Jinja2 template inheritance](http://jinja.pocoo.org/docs/2.9/templates/#template-inheritance) and override the specific template block you need to change.
150
+
151
+
### Example: Configure gzip in nginx configuration
152
+
153
+
Set the `nginx_conf_template` to point to a template file in your playbook directory.
0 commit comments