Skip to content

Commit cd788dd

Browse files
committed
Fix license removal bug and prepare 0.3.1 release (#32)
1 parent 3e5fad6 commit cd788dd

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

3-
## 0.3.1 (Unreleased)
3+
## 0.3.1 (September 22, 2020)
4+
5+
FEATURES:
6+
7+
* Two new variables have been introduced:
8+
* `nginx_app_protect_service_modify` -- Setting this variable to true/false will determine whether the default service timeout value gets modified.
9+
* `nginx_app_protect_log_policy_target` -- This variable is intended as an eventual replacement for `nginx_app_protect_log_policy_syslog_target` and allows using different destinations for NGINX App Protect's log files.
410

511
ENHANCEMENTS:
612

@@ -9,7 +15,6 @@ ENHANCEMENTS:
915
BUG FIXES:
1016

1117
* Rename handlers to use more specific role related naming and prevent namespace collision issues.
12-
* Add a `nginx_app_protect_service_modify` variable to revert a breaking change introduced in 0.3.0 where timeouts would not be set by default.
1318
* Set NGINX handler to `state: restarted` to prevent some compatibility issues when NGINX App Protect is installed on an instance already running NGINX beforehand.
1419
* Using `update_cache: true` by itself in the `apt` module is not always idempotent. Moved the NGINX App Protect installation task to a corresponding `apt` or `yum` module to avoid this scenario.
1520

@@ -19,6 +24,10 @@ DEPRECATION WARNING:
1924

2025
* The ability to create an NGINX config including some basic App Protect directives has migrated to the NGINX config role available [here](https://github.com/nginxinc/ansible-role-nginx-config). Any new issues or PRs related to configuring NGINX App Protect directives should be submitted in the new NGINX Config repository. New issues or PRs related to configuring NGINX App Protect directives submitted in this repository will not be worked on. The NGINX App Protect directives configuration functionalities included in this role will be removed in an upcoming release.
2126

27+
BREAKING CHANGES:
28+
29+
* `nginx_app_protect_delete_license` has been renamed to `nginx_app_protect_remove_license`.
30+
2231
FEATURES:
2332

2433
* A new variable has been introduced:

tasks/install/remove-license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
nginx_app_protect_license_status: absent
55

66
- name: Delete repository data
7-
include_tasks: "{{ role_path }}/tasks/install/setup-{{ ansible_facts['os_family'] | lower }}.yml"
7+
include_tasks: "{{ role_path }}/tasks/install/install-{{ ansible_facts['os_family'] | lower }}.yml"
88

99
- name: Delete NGINX App Protect license
1010
file:

tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
tags: nginx_app_protect_configure
6666
when: nginx_app_protect_state != "absent"
6767

68+
- name: Ensure NGINX App Protect is running
69+
meta: flush_handlers
70+
6871
- name: Remove NGINX App Protect
6972
block:
7073
- name: Remove NGINX App Protect package

0 commit comments

Comments
 (0)