Skip to content

Commit a9697ff

Browse files
authored
Systemd tweaks (#28)
1 parent 8f2dad0 commit a9697ff

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
BUG FIXES:
66

77
* Rename handlers to use more specific role related naming and prevent namespace collision issues.
8-
* Set NGINX handler to `state: restasted` to prevent some compatibility issues when NGINX App Protect is installed on an instance already running NGINX beforehand.
8+
* 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.
9+
* Set NGINX handler to `state: restarted` to prevent some compatibility issues when NGINX App Protect is installed on an instance already running NGINX beforehand.
910

1011
## 0.3.0 (September 21, 2020)
1112

defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ nginx_app_protect_start: true
4646

4747
# Increase NGINX service timeout to accommodate ruleset loading from default 90s.
4848
# Default is commented out.
49-
# nginx_app_protect_timeout: 180
49+
nginx_app_protect_service_modify: true
50+
nginx_app_protect_timeout: 180
5051

5152
# Creates basic configuration files and enables NGINX App Protect on the target host
5253
nginx_app_protect_configure: false

tasks/install/install-app-protect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
group: root
5555
mode: 0644
5656
notify: (Handler - NGINX App Protect) Systemd daemon-reload
57-
when: nginx_app_protect_timeout is defined
57+
when: nginx_app_protect_service_modify | bool

0 commit comments

Comments
 (0)