Markdown updates

This commit is contained in:
alessfg 2021-09-22 15:42:40 +02:00
parent 2681fbf67f
commit ac6f23aa1f
No known key found for this signature in database
GPG Key ID: 7E5B134EEDC42A56
7 changed files with 228 additions and 207 deletions

View File

@ -6,22 +6,28 @@ labels: ''
assignees: '' assignees: ''
--- ---
### Describe the bug ### Describe the bug
A clear and concise description of what the bug is. A clear and concise description of what the bug is.
### To reproduce ### To reproduce
Steps to reproduce the behavior: Steps to reproduce the behavior:
1. Deploy NGINX role using playbook.yml 1. Deploy NGINX role using playbook.yml
2. View output/logs/configuration on '...' 2. View output/logs/configuration on '...'
3. See error 3. See error
### Expected behavior ### Expected behavior
A clear and concise description of what you expected to happen. A clear and concise description of what you expected to happen.
### Your environment: ### Your environment
- Version of the NGINX role or specific commit
- Version of Ansible - Version of the NGINX role or specific commit
- Version of Jinja2 (if you are using any templating capability) - Version of Ansible
- Target deployment platform - Version of Jinja2 (if you are using any templating capability)
- Target deployment platform
### Additional context ### Additional context
Add any other context about the problem here. Add any other context about the problem here.

View File

@ -6,13 +6,17 @@ labels: ''
assignees: '' assignees: ''
--- ---
### Is your feature request related to a problem? Please describe ### Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is. Ex. I'm always frustrated when ... A clear and concise description of what the problem is. Ex. I'm always frustrated when ...
### Describe the solution you'd like ### Describe the solution you'd like
A clear and concise description of what you want to happen. A clear and concise description of what you want to happen.
### Describe alternatives you've considered ### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered. A clear and concise description of any alternative solutions or features you've considered.
### Additional context ### Additional context
Add any other context or screenshots about the feature request here. Add any other context or screenshots about the feature request here.

View File

@ -1,10 +1,12 @@
### Proposed changes ### Proposed changes
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR). Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the [supported keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue) here in this description (not in the title of the PR).
### Checklist ### Checklist
Before creating a PR, run through this checklist and mark each as complete. Before creating a PR, run through this checklist and mark each as complete.
- [ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/ansible-role-nginx/blob/main/CONTRIBUTING.md) document - [ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/ansible-role-nginx/blob/main/CONTRIBUTING.md) document
- [ ] I have added Molecule tests that prove my fix is effective or that my feature works - [ ] I have added Molecule tests that prove my fix is effective or that my feature works
- [ ] I have checked that any relevant Molecule tests pass after adding my changes - [ ] I have checked that any relevant Molecule tests pass after adding my changes
- [ ] I have updated any relevant documentation (`defaults/main/*.yml`, `README.md` and `CHANGELOG.md`) - [ ] I have updated any relevant documentation (`defaults/main/*.yml`, `README.md` and `CHANGELOG.md`)

View File

@ -8,8 +8,8 @@ Support installing NGINX OSS in Amazon Linux.
ENHANCEMENTS: ENHANCEMENTS:
* Update the README and Ansible metadata matrix of supported distributions. * Update the README and Ansible metadata matrix of supported distributions.
* Update the Molecule tests to include the newly supported distributions and remove distributions that are no longer supported. * Update the Molecule tests to include the newly supported distributions and remove distributions that are no longer supported.
## 0.21.0 (August 11, 2021) ## 0.21.0 (August 11, 2021)
@ -19,8 +19,8 @@ Remove the deprecation warning in the README detailing the advent of the [NGINX
FEATURES: FEATURES:
* Add a `nginx_manage_repo` feature flag which allows disabling NGINX repo management by this role. * Add a `nginx_manage_repo` feature flag which allows disabling NGINX repo management by this role.
* Add a `nginx_install_epel_release` feature flag which allows epel-release to not be installed by this role if so desired. * Add a `nginx_install_epel_release` feature flag which allows epel-release to not be installed by this role if so desired.
ENHANCEMENTS: ENHANCEMENTS:
@ -30,15 +30,15 @@ Bump the Ansible `community.general` collection to `3.5.0` and `community.docker
BREAKING CHANGES: BREAKING CHANGES:
* The NGINX Plus repository has been updated. This might cause some issues when running the role on an instance that already has NGINX Plus installed. **Starting with NGINX Plus R25, you will need to install NGINX Plus using release `0.20.0`. If you are trying to install R23, please use release `0.19.2`. NGINX Plus R24 should work with both release `0.19.2` and `0.20.0`.** * The NGINX Plus repository has been updated. This might cause some issues when running the role on an instance that already has NGINX Plus installed. **Starting with NGINX Plus R25, you will need to install NGINX Plus using release `0.20.0`. If you are trying to install R23, please use release `0.19.2`. NGINX Plus R24 should work with both release `0.19.2` and `0.20.0`.**
* The NGINX Plus modsecurity module is no longer supported by this role. Until NGINX Plus R25 is released, you might keep using release `0.19.2` if you wish to install modsecurity. * The NGINX Plus modsecurity module is no longer supported by this role. Until NGINX Plus R25 is released, you might keep using release `0.19.2` if you wish to install modsecurity.
ENHANCEMENTS: ENHANCEMENTS:
* Replace Ansible base with Ansible core. Ansible core will be the "core" Ansible release moving forward from Ansible `2.11`. * Replace Ansible base with Ansible core. Ansible core will be the "core" Ansible release moving forward from Ansible `2.11`.
* Update GitHub actions to add a workflow dispatch option. * Update GitHub actions to add a workflow dispatch option.
* Replace "yes"/"no" boolean values with "true"/"false" to comply with YAML spec `1.2`. * Replace "yes"/"no" boolean values with "true"/"false" to comply with YAML spec `1.2`.
* Bump the Ansible `community.general` collection to `3.2.0` and `community.docker` collection to `1.7.0`. * Bump the Ansible `community.general` collection to `3.2.0` and `community.docker` collection to `1.7.0`.
BUG FIXES: BUG FIXES:
@ -48,7 +48,8 @@ Change the url used to grep the latest NGINX version when installing from source
FEATURES: FEATURES:
* Replace Ansible community distribution with Ansible base and add the necessary extra collections as a dependency requirement. For reference, these are: * Replace Ansible community distribution with Ansible base and add the necessary extra collections as a dependency requirement. For reference, these are:
```yaml ```yaml
--- ---
collections: collections:
@ -59,33 +60,34 @@ FEATURES:
- name: community.docker # This collection is only used as part of the Molecule testing suite - name: community.docker # This collection is only used as part of the Molecule testing suite
version: 1.5.0 version: 1.5.0
``` ```
* Explicitly list Jinja2 `2.11.3` as a requirement, as well as detail the minimum supported version (`2.11.x`).
* Add support for Dependabot. * Explicitly list Jinja2 `2.11.3` as a requirement, as well as detail the minimum supported version (`2.11.x`).
* Initial implementation of Release Drafter. * Add support for Dependabot.
* Initial implementation of Release Drafter.
ENHANCEMENTS: ENHANCEMENTS:
* Only run GitHub actions Galaxy CI/CD workflow when a new release is published. * Only run GitHub actions Galaxy CI/CD workflow when a new release is published.
* Add Alpine `3.13` to the list of NGINX Plus supported platforms. * Add Alpine `3.13` to the list of NGINX Plus supported platforms.
* Specify GitHub actions Ubuntu release. * Specify GitHub actions Ubuntu release.
* Minor GitHub template tweaks, including the creation of a SECURITY doc. * Minor GitHub template tweaks, including the creation of a SECURITY doc.
* Add Molecule NGINX OSS tests for Alpine 3.13, remove Molecule tests for Debian stretch, and update list of supported platforms. * Add Molecule NGINX OSS tests for Alpine 3.13, remove Molecule tests for Debian stretch, and update list of supported platforms.
* Update Ansible base to `2.10.8`, Ansible Lint to `5.0.7`, Molecule to `3.3.0`, yamllint to `1.26.1` and Docker Python SDK to `5.0.0`. * Update Ansible base to `2.10.8`, Ansible Lint to `5.0.7`, Molecule to `3.3.0`, yamllint to `1.26.1` and Docker Python SDK to `5.0.0`.
* Consolidate Molecule testing scenarios to address changes introduced in Ansible Lint `5.*`. * Consolidate Molecule testing scenarios to address changes introduced in Ansible Lint `5.*`.
* Override of systemd `Restart` value by using proper `nginx_service_restart` variable. * Override of systemd `Restart` value by using proper `nginx_service_restart` variable.
BUG FIXES: BUG FIXES:
* Add `state` parameter to package module in Molecule verification tests. * Add `state` parameter to package module in Molecule verification tests.
* Change the command directory when running the NGINX configuration check handler to prevent edge case errors when the handler is run from a directory that the NGINX process' user does not have access to. * Change the command directory when running the NGINX configuration check handler to prevent edge case errors when the handler is run from a directory that the NGINX process' user does not have access to.
## 0.19.1 (January 11, 2021) ## 0.19.1 (January 11, 2021)
ENHANCEMENTS: ENHANCEMENTS:
* The GitHub actions Molecule CI/CD workflow should now correctly avoid running 'plus' related tests on external PRs. * The GitHub actions Molecule CI/CD workflow should now correctly avoid running 'plus' related tests on external PRs.
* Update Ansible base to `2.10.4`, Ansible to `2.10.5`, Molecule to `3.2.2` and Docker Python SDK to `4.4.1`. * Update Ansible base to `2.10.4`, Ansible to `2.10.5`, Molecule to `3.2.2` and Docker Python SDK to `4.4.1`.
* Update copyright notice. * Update copyright notice.
## 0.19.0 (December 23, 2020) ## 0.19.0 (December 23, 2020)
@ -101,10 +103,10 @@ The GitHub actions Molecule CI/CD workflow is no longer run on a new release (th
ENHANCEMENTS: ENHANCEMENTS:
* Update Molecule to `3.2.1` and Docker Python SDK to `4.4.0`. * Update Molecule to `3.2.1` and Docker Python SDK to `4.4.0`.
* Add Alpine `3.12` to supported platforms for NGINX Plus. * Add Alpine `3.12` to supported platforms for NGINX Plus.
* Remove Alpine `3.9` and CentOS/RHEL `6` from supported platforms due to EOL. * Remove Alpine `3.9` and CentOS/RHEL `6` from supported platforms due to EOL.
* Replace TravisCI with GitHub actions. * Replace TravisCI with GitHub actions.
## 0.18.1 (November 17, 2020) ## 0.18.1 (November 17, 2020)
@ -127,30 +129,32 @@ BREAKING CHANGES:
ENHANCEMENTS: ENHANCEMENTS:
Implement a new syntax to specify modules to be installed. You can now use the following format if you want further fine grained control over how you install modules: Implement a new syntax to specify modules to be installed. You can now use the following format if you want further fine grained control over how you install modules:
```yaml ```yaml
- name: njs # Required - name: njs # Required
state: present # Optional state: present # Optional
version: =1.19.4+0.4.4-1~bionic # Optional version: =1.19.4+0.4.4-1~bionic # Optional
``` ```
The old method of specifying modules (using a list of names) still works as expected. The old method of specifying modules (using a list of names) still works as expected.
## 0.17.3 (November 9, 2020) ## 0.17.3 (November 9, 2020)
ENHANCEMENTS: ENHANCEMENTS:
* Add survey to README. * Add survey to README.
* Improve README structure and use tables where relevant. * Improve README structure and use tables where relevant.
* Update Ansible (now Ansible base) to `2.10.3`, Ansible (now Ansible Community Distribution) to `2.10.3`, Ansible Lint to `4.3.7`, Molecule to `3.1.5`, and yamllint to `1.25.0`. * Update Ansible (now Ansible base) to `2.10.3`, Ansible (now Ansible Community Distribution) to `2.10.3`, Ansible Lint to `4.3.7`, Molecule to `3.1.5`, and yamllint to `1.25.0`.
* Optimize NGINX Plus install/remove tasks. * Optimize NGINX Plus install/remove tasks.
BUG FIXES: BUG FIXES:
* Prevent TravisCI from trying to build (and failing) NGINX Plus images on external PRs. * Prevent TravisCI from trying to build (and failing) NGINX Plus images on external PRs.
* Fix naming for SELinux facts dictionary. * Fix naming for SELinux facts dictionary.
* Role now runs correctly when using Ansible's check mode. * Role now runs correctly when using Ansible's check mode.
* Removing the NGINX Plus license in RHEL based distros should no longer return a repository not found error. * Removing the NGINX Plus license in RHEL based distros should no longer return a repository not found error.
* Fix issue when removing NGINX Plus license on some distributions. * Fix issue when removing NGINX Plus license on some distributions.
* Fix Amazon Linux NGINX Plus install while at it. * Fix Amazon Linux NGINX Plus install while at it.
## 0.17.2 (September 24, 2020) ## 0.17.2 (September 24, 2020)
@ -162,42 +166,42 @@ Fix an issue where sometimes the role handlers will fail in distros where NGINX
ENHANCEMENTS: ENHANCEMENTS:
* The role will no longer fail automatically on unsupported platforms, but the error message will still be displayed. * The role will no longer fail automatically on unsupported platforms, but the error message will still be displayed.
* The `Check NGINX` handler now always outputs an `ok` state instead of `changed` since it's a read-only operation with no traceable changes. * The `Check NGINX` handler now always outputs an `ok` state instead of `changed` since it's a read-only operation with no traceable changes.
## 0.17.0 (September 20, 2020) ## 0.17.0 (September 20, 2020)
BREAKING CHANGES: BREAKING CHANGES:
* The process to install modules has changed. You will now have to use a list variable, `nginx_modules`, instead of manually setting the modules you want to install to `true` or `false`. This change will also simplify adding future supported modules to this role. You can find a list of supported modules for NGINX and NGINX Plus in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml). * The process to install modules has changed. You will now have to use a list variable, `nginx_modules`, instead of manually setting the modules you want to install to `true` or `false`. This change will also simplify adding future supported modules to this role. You can find a list of supported modules for NGINX and NGINX Plus in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml).
* Modules can no longer be added to your NGINX config using this role. Please use the [`nginx_config`](https://github.com/nginxinc/ansible-role-nginx-config) role instead. * Modules can no longer be added to your NGINX config using this role. Please use the [`nginx_config`](https://github.com/nginxinc/ansible-role-nginx-config) role instead.
* Changed `nginx_configure` default value from `true` to `false` to further promote the adoption of the [NGINX config](https://github.com/nginxinc/ansible-role-nginx-config) role. * Changed `nginx_configure` default value from `true` to `false` to further promote the adoption of the [NGINX config](https://github.com/nginxinc/ansible-role-nginx-config) role.
FEATURES: FEATURES:
* A new variable has been introduced: * A new variable has been introduced:
* `nginx_setup_license` -- Determine whether you want to use this role to upload your NGINX license to your target host. * `nginx_setup_license` -- Determine whether you want to use this role to upload your NGINX license to your target host.
* The role will now fail automatically if you try to deploy NGINX from an official repository in an unsupported distribution. You can find a list of supported distributions for NGINX and NGINX Plus in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml) * The role will now fail automatically if you try to deploy NGINX from an official repository in an unsupported distribution. You can find a list of supported distributions for NGINX and NGINX Plus in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml)
* Three new tags have been introduced -- `nginx_setup_license`, `nginx_install` and `nginx_check_support`. * Three new tags have been introduced -- `nginx_setup_license`, `nginx_install` and `nginx_check_support`.
* Add Alpine 3.12 to the list of supported platforms. * Add Alpine 3.12 to the list of supported platforms.
* Remove Alpine 3.8 from the list of supported platforms. * Remove Alpine 3.8 from the list of supported platforms.
* Add NGINX Plus tests to TravisCI * Add NGINX Plus tests to TravisCI
ENHANCEMENTS: ENHANCEMENTS:
* Added handlers to check for NGINX syntax validity and fail if any errors are detected. * Added handlers to check for NGINX syntax validity and fail if any errors are detected.
* Switch to using `ansible_facts` wherever possible. * Switch to using `ansible_facts` wherever possible.
* Major backend refactoring to reduce the number of files and tasks. * Major backend refactoring to reduce the number of files and tasks.
* You can now specify an `nginx_repository` for NGINX Plus too. * You can now specify an `nginx_repository` for NGINX Plus too.
* Moved "constant" variables to `vars/main.yml`. * Moved "constant" variables to `vars/main.yml`.
* Included deprecation warnings in task names and files. * Included deprecation warnings in task names and files.
* Improved tasks naming conventions. * Improved tasks naming conventions.
* Update Ansible to `2.9.13` and Ansible Lint to `4.3.5`. * Update Ansible to `2.9.13` and Ansible Lint to `4.3.5`.
BUG FIXES: BUG FIXES:
* NGINX Plus repository data for RHEL based distros is now appropriately set. * NGINX Plus repository data for RHEL based distros is now appropriately set.
* Building NGINX from source should now work as expected in CentOS/RHEL 6 systems running Python `2.6` or earlier versions of `2.7`. * Building NGINX from source should now work as expected in CentOS/RHEL 6 systems running Python `2.6` or earlier versions of `2.7`.
## 0.16.0 (August 28, 2020) ## 0.16.0 (August 28, 2020)
@ -207,9 +211,9 @@ The Debian and Ubuntu repositories have slightly changed. You may run into some
ENHANCEMENTS: ENHANCEMENTS:
* Update Ansible to `2.9.12` and Ansible Lint to `4.3.2`. * Update Ansible to `2.9.12` and Ansible Lint to `4.3.2`.
* Explicitly define `mode` in relevant tasks. * Explicitly define `mode` in relevant tasks.
* Explicitly define the `nginx` `apt_repository` filename in Debian based distros. * Explicitly define the `nginx` `apt_repository` filename in Debian based distros.
FEATURES: FEATURES:
@ -224,18 +228,20 @@ Building OpenSSL from source should now work properly in CentOS 8.
DEPRECATION WARNING: DEPRECATION WARNING:
With the advent of Ansible collections and to reduce the overhead of this role, the decision has been made to split this role into three smaller roles: With the advent of Ansible collections and to reduce the overhead of this role, the decision has been made to split this role into three smaller roles:
* The NGINX Ansible role will keep working as is and be used to install and setup NGINX.
* There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on. The NGINX configuration functionalities included in this role will be removed in an upcoming release. * The NGINX Ansible role will keep working as is and be used to install and setup NGINX.
* NGINX Unit now has a separate role available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on. The NGINX Unit functionalities included in this role will be removed in an upcoming release. * There now is a separate role to manage and create NGINX configurations available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX submitted in this repository will not be worked on. The NGINX configuration functionalities included in this role will be removed in an upcoming release.
* NGINX Unit now has a separate role available [here](https://github.com/nginxinc/ansible-role-nginx-unit). Any new issues or PRs related to NGINX Unit should be submitted in the new NGINX Unit repository. New issues or PRs related to NGINX Unit submitted in this repository will not be worked on. The NGINX Unit functionalities included in this role will be removed in an upcoming release.
BREAKING CHANGES: BREAKING CHANGES:
* 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. * 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.
* If you use `custom_options` you will now need to manually end each directive with a semicolon. * If you use `custom_options` you will now need to manually end each directive with a semicolon.
* The `status` directive is no longer supported in NGINX Plus, and the `stub_status` directive has been reworked into a template. * The `status` directive is no longer supported in NGINX Plus, and the `stub_status` directive has been reworked into a template.
* 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. * 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.
Old configuration example Old configuration example
```yaml ```yaml
listen_address: localhost listen_address: localhost
listen_port: 80 listen_port: 80
@ -243,6 +249,7 @@ BREAKING CHANGES:
``` ```
New configuration example New configuration example
```yaml ```yaml
listen: listen:
listen_localhost: listen_localhost:
@ -256,27 +263,27 @@ BREAKING CHANGES:
FEATURES: FEATURES:
* Add support to configure logrotate. * Add support to configure logrotate.
* Add support for Ubuntu Focal. * Add support for Ubuntu Focal.
* Add support to configure SELinux. * Add support to configure SELinux.
* 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. * 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.
ENHANCEMENTS: ENHANCEMENTS:
* Molecule tests using Testinfra have been migrated to use Ansible instead. * Molecule tests using Testinfra have been migrated to use Ansible instead.
* The role now uses `include_tasks` instead of `import_tasks` when possible to speed up the role's execution time. * The role now uses `include_tasks` instead of `import_tasks` when possible to speed up the role's execution time.
* Improve configuration cleanup capabilities. You can now remove all `*.conf` files in a given directory, or specify a list of files you wish to delete. * Improve configuration cleanup capabilities. You can now remove all `*.conf` files in a given directory, or specify a list of files you wish to delete.
* Improve configuration templating capabilities: * Improve configuration templating capabilities:
* Add support for unix upstreams. * Add support for unix upstreams.
* Add PID templating option. * Add PID templating option.
* Add support for down parameter in upstreams. * Add support for down parameter in upstreams.
* Add option for custom error pages. * Add option for custom error pages.
* Add SSL support to `stream` contexts. * Add SSL support to `stream` contexts.
BUG FIXES: BUG FIXES:
* `nginx_debug_output` would sometimes fail if NGINX had not been automatically started by the system upon installation. * `nginx_debug_output` would sometimes fail if NGINX had not been automatically started by the system upon installation.
* If `http_demo_conf` was undefined the web server template interpolation would fail. * If `http_demo_conf` was undefined the web server template interpolation would fail.
## 0.14.0 (April 22, 2020) ## 0.14.0 (April 22, 2020)
@ -288,63 +295,64 @@ The NGINX Controller agent can no longer be installed using this role. Please us
FEATURES: FEATURES:
* Install/build NGINX from source options now available. * Install/build NGINX from source options now available.
* Implement NGINX http sub module templating. * Implement NGINX http sub module templating.
* NGINX config is now correctly validated each run. * NGINX config is now correctly validated each run.
* SSL Private Key data is hidden when running the role with the `--diff` flag. * SSL Private Key data is hidden when running the role with the `--diff` flag.
BUG FIXES: BUG FIXES:
* The role should no longer sporadically cause apt update to fail in amd64 systems when installing NGINX from an official repository. * The role should no longer sporadically cause apt update to fail in amd64 systems when installing NGINX from an official repository.
* Modules should now correctly install when using a specific NGINX Plus version. * Modules should now correctly install when using a specific NGINX Plus version.
## 0.13.0 (December 13, 2019) ## 0.13.0 (December 13, 2019)
BREAKING CHANGES: BREAKING CHANGES:
* The new listen templating options are not backwards with the previous listen templating options. Check the `README` or `molecule/template_module/playbook.yml` for examples on how to use the new listen template. * The new listen templating options are not backwards with the previous listen templating options. Check the `README` or `molecule/template_module/playbook.yml` for examples on how to use the new listen template.
* BSD and Linux NGINX installation tasks have undergone some major changes. As such, you may have to update your playbooks accordingly. * BSD and Linux NGINX installation tasks have undergone some major changes. As such, you may have to update your playbooks accordingly.
FEATURES: FEATURES:
* Improve NGINX http templating: * Improve NGINX http templating:
* Multiple server support in HTTP contexts. * Multiple server support in HTTP contexts.
* Header support. * Header support.
* OCSP stapling. * OCSP stapling.
* Improved proxy settings. * Improved proxy settings.
* Logging settings. * Logging settings.
* Improved SSL settings. * Improved SSL settings.
* Improved authentication settings. * Improved authentication settings.
* Max body size support. * Max body size support.
* Improved listen templating. * Improved listen templating.
* Switch to Molecule for testing. * Switch to Molecule for testing.
* Add support for Debian Buster. * Add support for Debian Buster.
* Support for specifying which version of NGINX to install. * Support for specifying which version of NGINX to install.
* Split default variables into multiple functional files. * Split default variables into multiple functional files.
* Improve support for Alpine distributions. * Improve support for Alpine distributions.
* Support for updating or removing NGINX from your system. * Support for updating or removing NGINX from your system.
* Implemented tags to support running specific tasks instead of the whole role. * Implemented tags to support running specific tasks instead of the whole role.
BUG FIXES: BUG FIXES:
* Module installation when using NGINX Plus has been fixed. * Module installation when using NGINX Plus has been fixed.
* Websockets templating has been reenabled after being accidentally deleted. * Websockets templating has been reenabled after being accidentally deleted.
* 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. * 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.
## 0.12.0 (May 22, 2019) ## 0.12.0 (May 22, 2019)
FEATURES: FEATURES:
Improve NGINX http templating - following parameters are now supported: Improve NGINX http templating - following parameters are now supported:
* Websockets.
* Basic authentication. * Websockets.
* Proxy cache. * Basic authentication.
* Proxy redirect. * Proxy cache.
* Proxy timeouts. * Proxy redirect.
* SSL. * Proxy timeouts.
* Root (in server context). * SSL.
* Add basic NGINX stream templating. * Root (in server context).
* Add support for RHEL 8 and Alpine Linux. * Add basic NGINX stream templating.
* Add support for RHEL 8 and Alpine Linux.
BUG FIXES: BUG FIXES:
@ -354,19 +362,19 @@ Fix module installation tasks.
FEATURES: FEATURES:
* Allow setting a custom apt and rpm signing key host. * Allow setting a custom apt and rpm signing key host.
* Add support for enabling an http to https redirects. * Add support for enabling an http to https redirects.
* Add ansible_managed to templates. * Add ansible_managed to templates.
* Rename html_app_name to web_server_name. * Rename html_app_name to web_server_name.
* Rename load_balancer block to reverse_proxy. * Rename load_balancer block to reverse_proxy.
* Allow setting the listen port when using SSL. * Allow setting the listen port when using SSL.
* Improve SSL defaults. * Improve SSL defaults.
* Allow setting http or https server locations in proxy_pass. * Allow setting http or https server locations in proxy_pass.
BUG FIXES: BUG FIXES:
* Ignore undefined values for autoindex and health check. * Ignore undefined values for autoindex and health check.
* Clarify that the redirect variable refers to a http to https redirect. * Clarify that the redirect variable refers to a http to https redirect.
## 0.10.1 (November 26, 2018) ## 0.10.1 (November 26, 2018)
@ -382,24 +390,24 @@ Improve templating support for health checks, multiple location blocks, and auto
BUG FIXES: BUG FIXES:
* Fetching the NGINX signing key is now more reliable. * Fetching the NGINX signing key is now more reliable.
* Fixed HTML templating. * Fixed HTML templating.
## 0.9.0 (October 18, 2018) ## 0.9.0 (October 18, 2018)
FEATURES: FEATURES:
* Refactor NGINX templating and file uploading. * Refactor NGINX templating and file uploading.
* Add ability to upload and template HTML files. * Add ability to upload and template HTML files.
* Add ability to upload SSL keys and certificates. * Add ability to upload SSL keys and certificates.
## 0.8.0 (September 17, 2018) ## 0.8.0 (September 17, 2018)
FEATURES: FEATURES:
* Add ability to install NGINX Plus Controller agent. * Add ability to install NGINX Plus Controller agent.
* Refactor installation of NGINX Amplify agent. * Refactor installation of NGINX Amplify agent.
* Rename variables to be prefixed with `nginx_`. * Rename variables to be prefixed with `nginx_`.
BUG FIXES: BUG FIXES:
@ -415,21 +423,21 @@ Add enabled parameter to NGINX and NGINX Unit handlers.
FEATURES: FEATURES:
* Add Amazon Linux 2 support for NGINX Plus. * Add Amazon Linux 2 support for NGINX Plus.
* Add ability to delete NGINX Plus license after installation. * Add ability to delete NGINX Plus license after installation.
BUG FIXES: BUG FIXES:
* GeoIP module can now be properly installed. * GeoIP module can now be properly installed.
* Module installation will no longer fail if only one module is specified. * Module installation will no longer fail if only one module is specified.
## 0.6.0 (July 19, 2018) ## 0.6.0 (July 19, 2018)
FEATURES: FEATURES:
* Improve NGINX Unit related documentation. * Improve NGINX Unit related documentation.
* Add FreeBSD and Amazon Linux 2 support for NGINX Unit. * Add FreeBSD and Amazon Linux 2 support for NGINX Unit.
* Allow users to install NGINX Unit without having to also install NGINX. * Allow users to install NGINX Unit without having to also install NGINX.
## 0.5.0 (June 28, 2018) ## 0.5.0 (June 28, 2018)
@ -441,8 +449,8 @@ Add support for NGINX Unit.
FEATURES: FEATURES:
* Implement support for FreeBSD. * Implement support for FreeBSD.
* Allow users to select the default NGINX repository. * Allow users to select the default NGINX repository.
## 0.3.0 (April 19, 2018) ## 0.3.0 (April 19, 2018)
@ -462,18 +470,18 @@ Add support for all first party NGINX modules.
BUG FIXES: BUG FIXES:
* Role should now work correctly in distros with old versions of Python. * Role should now work correctly in distros with old versions of Python.
* 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). * 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).
* Uploading/dynamically generating files should now result in the files being uploaded/created to/in the correct directory. * Uploading/dynamically generating files should now result in the files being uploaded/created to/in the correct directory.
## 0.1.0 - Initial release (Januray 26, 2018) ## 0.1.0 - Initial release (Januray 26, 2018)
Initial release of the NGINX Ansible role. Features include: Initial release of the NGINX Ansible role. Features include:
* Install NGINX Open Source or NGINX Plus. * Install NGINX Open Source or NGINX Plus.
* Choose between stable or mainline NGINX Open Source. * Choose between stable or mainline NGINX Open Source.
* Install NGINX Amplify. * Install NGINX Amplify.
* Install NGINX Javascript, Perl, and ModSecurity WAF NGINX modules. * Install NGINX Javascript, Perl, and ModSecurity WAF NGINX modules.
* Enable the NGINX Plus REST API and dashboard. * Enable the NGINX Plus REST API and dashboard.
* Upload NGINX configuration files. * Upload NGINX configuration files.
* Templated NGINX configuration system. * Templated NGINX configuration system.

View File

@ -67,10 +67,8 @@ members of the project's leadership.
## Attribution ## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq <https://www.contributor-covenant.org/faq>

View File

@ -11,8 +11,9 @@ The following is a set of guidelines for contributing to the NGINX Ansible role.
[Contributing](#contributing) [Contributing](#contributing)
[Code Guidelines](#code-guidelines) [Code Guidelines](#code-guidelines)
* [Git Guidelines](#git-guidelines)
* [Ansible Guidelines](#ansible-guidelines) * [Git Guidelines](#git-guidelines)
* [Ansible Guidelines](#ansible-guidelines)
[Code of Conduct](https://github.com/nginxinc/ansible-role-nginx/blob/main/CODE_OF_CONDUCT.md) [Code of Conduct](https://github.com/nginxinc/ansible-role-nginx/blob/main/CODE_OF_CONDUCT.md)
@ -26,14 +27,14 @@ Follow our [Installation Guide](https://github.com/nginxinc/ansible-role-nginx/b
### Project Structure ### Project Structure
* The NGINX Ansible role is written in `yaml` and supports NGINX Open Source, NGINX Plus, and NGINX Amplify. * The NGINX Ansible role is written in `yaml` and supports NGINX Open Source, NGINX Plus, and NGINX Amplify.
* The project follows the standard [Ansible role directory structure](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html): * The project follows the standard [Ansible role directory structure](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html):
* The main code is found in [`tasks/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/tasks/). * The main code is found in [`tasks/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/tasks/).
* Variables can be found in [`defaults/main/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/). * Variables can be found in [`defaults/main/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/defaults/main/).
* "Constant" variables can be found in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml). * "Constant" variables can be found in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/main/vars/main.yml).
* Configuration templates for NGINX can be found in [`templates/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/templates/). * Configuration templates for NGINX can be found in [`templates/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/templates/).
* [Molecule](https://molecule.readthedocs.io/) tests can be found in [`molecule/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/). * [Molecule](https://molecule.readthedocs.io/) tests can be found in [`molecule/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/molecule/).
* CI/CD is done via GitHub actions using the workflow files found in [`.github/workflows/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/.github/workflows/). * CI/CD is done via GitHub actions using the workflow files found in [`.github/workflows/`](https://github.com/nginxinc/ansible-role-nginx/blob/main/.github/workflows/).
## Contributing ## Contributing
@ -47,8 +48,8 @@ To suggest an enhancement, please create an issue on GitHub with the label `enha
### Open a Pull Request ### Open a Pull Request
* Fork the repo, create a branch, implement your changes, add any relevant Molecule tests, submit a PR when your changes are **tested** (using Molecule) and ready for review. * Fork the repo, create a branch, implement your changes, add any relevant Molecule tests, submit a PR when your changes are **tested** (using Molecule) and ready for review.
* Fill in [our pull request template](https://github.com/nginxinc/ansible-role-nginx/blob/main/.github/pull_request_template.md). * Fill in [our pull request template](https://github.com/nginxinc/ansible-role-nginx/blob/main/.github/pull_request_template.md).
Note: if youd like to implement a new feature, please consider creating a feature request issue first to start a discussion about the feature. Note: if youd like to implement a new feature, please consider creating a feature request issue first to start a discussion about the feature.
@ -56,18 +57,18 @@ Note: if youd like to implement a new feature, please consider creating a fea
### Ansible Guidelines ### Ansible Guidelines
* Run `molecule lint` over your code to automatically resolve a lot of `yaml` and Ansible style issues. * Run `molecule lint` over your code to automatically resolve a lot of `yaml` and Ansible style issues.
* Run `molecule test` on your code before you submit a PR to catch any potential issues. If you are testing a specific molecule scenario, run `molecule test -s <scenario>`. If you are testing the NGINX Plus scenario (`plus`), you will need to procure an NGINX Plus license (check out the [NGINX Plus developer license FAQ](https://www.nginx.com/developer-license-faqs/) to find out how to request one). * Run `molecule test` on your code before you submit a PR to catch any potential issues. If you are testing a specific molecule scenario, run `molecule test -s <scenario>`. If you are testing the NGINX Plus scenario (`plus`), you will need to procure an NGINX Plus license (check out the [NGINX Plus developer license FAQ](https://www.nginx.com/developer-license-faqs/) to find out how to request one).
* Follow these guides on some good practices for Ansible: * Follow these guides on some good practices for Ansible:
* <https://www.ansible.com/blog/ansible-best-practices-essentials> * <https://www.ansible.com/blog/ansible-best-practices-essentials>
* <https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html> * <https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html>
### Git Guidelines ### Git Guidelines
* Keep a clean, concise and meaningful git commit history on your branch (within reason), rebasing locally and squashing before submitting a PR. * Keep a clean, concise and meaningful git commit history on your branch (within reason), rebasing locally and squashing before submitting a PR.
* Follow the guidelines of writing a good commit message as described here <https://chris.beams.io/posts/git-commit/> and summarised in the next few points: * Follow the guidelines of writing a good commit message as described here <https://chris.beams.io/posts/git-commit/> and summarised in the next few points:
* In the subject line, use the present tense ("Add feature" not "Added feature"). * In the subject line, use the present tense ("Add feature" not "Added feature").
* In the subject line, use the imperative mood ("Move cursor to..." not "Moves cursor to..."). * In the subject line, use the imperative mood ("Move cursor to..." not "Moves cursor to...").
* Limit the subject line to 72 characters or less. * Limit the subject line to 72 characters or less.
* Reference issues and pull requests liberally after the subject line. * Reference issues and pull requests liberally after the subject line.
* Add more detailed description in the body of the git message (`git commit -a` to give you more space and time in your text editor to write a good message instead of `git commit -am`). * Add more detailed description in the body of the git message (`git commit -a` to give you more space and time in your text editor to write a good message instead of `git commit -am`).

View File

@ -14,8 +14,9 @@ This role installs NGINX Open Source, NGINX Plus, or the NGINX Amplify agent on
### Ansible ### Ansible
* This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core (above `2.11`) and Ansible (above `2.9.10`). * This role is developed and tested with [maintained](https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html) versions of Ansible core (above `2.11`) and Ansible (above `2.9.10`).
* When using Ansible base, you will also need to install the following collections: * When using Ansible base, you will also need to install the following collections:
```yaml ```yaml
--- ---
collections: collections:
@ -24,18 +25,19 @@ This role installs NGINX Open Source, NGINX Plus, or the NGINX Amplify agent on
- name: ansible.posix - name: ansible.posix
version: 1.2.0 version: 1.2.0
``` ```
**Note:** You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections. **Note:** You can alternatively install the Ansible community distribution (what is known as the "old" Ansible) if you don't want to manage individual collections.
* Instructions on how to install Ansible can be found in the [Ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#upgrading-ansible-from-version-2-9-and-older-to-version-2-10-or-later). * Instructions on how to install Ansible can be found in the [Ansible website](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#upgrading-ansible-from-version-2-9-and-older-to-version-2-10-or-later).
### Jinja2 ### Jinja2
* This role uses Jinja2 templates. Ansible base installs Jinja2 by default, but depending on your install and/or upgrade path, you might be running an outdated version of Jinja2. The minimum version of Jinja2 required for the role to properly function is `2.11`. * This role uses Jinja2 templates. Ansible base installs Jinja2 by default, but depending on your install and/or upgrade path, you might be running an outdated version of Jinja2. The minimum version of Jinja2 required for the role to properly function is `2.11`.
* Instructions on how to install Jinja2 can be found in the [Jinja2 website](https://jinja.palletsprojects.com/en/2.11.x/intro/#installation). * Instructions on how to install Jinja2 can be found in the [Jinja2 website](https://jinja.palletsprojects.com/en/2.11.x/intro/#installation).
### Molecule ### Molecule
* Molecule is used to test the various functionalities of the role. The recommended version of Molecule to test this role is `3.3`. * Molecule is used to test the various functionalities of the role. The recommended version of Molecule to test this role is `3.3`.
* Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html). * Instructions on how to install Molecule can be found in the [Molecule website](https://molecule.readthedocs.io/en/latest/installation.html).
## Installation ## Installation