File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.3.1 (Unreleased)
4
+
5
+ BUG FIXES:
6
+
7
+ * Rename handlers to use more specific role related naming and prevent namespace collision issues.
8
+
3
9
## 0.3.0 (September 21, 2020)
4
10
5
11
DEPRECATION WARNING:
Original file line number Diff line number Diff line change 1
1
---
2
- - name : (Handler) Systemd daemon-reload
2
+ - name : (Handler - NGINX App Protect ) Systemd daemon-reload
3
3
systemd :
4
4
daemon_reload : true
5
5
6
- - name : (Handler) Check NGINX
6
+ - name : (Handler - NGINX App Protect ) Check NGINX
7
7
command : nginx -t
8
8
register : config
9
9
ignore_errors : true
10
- listen : (Handler) Run NGINX
10
+ listen : (Handler - NGINX App Protect ) Run NGINX
11
11
12
- - name : (Handler) Print NGINX error if syntax check fails
12
+ - name : (Handler - NGINX App Protect ) Print NGINX error if syntax check fails
13
13
debug :
14
14
var : config.stderr_lines
15
15
failed_when : config.rc != 0
16
16
when : config.rc != 0
17
- listen : (Handler) Run NGINX
17
+ listen : (Handler - NGINX App Protect ) Run NGINX
18
18
19
- - name : (Handler) Start/Reload NGINX
19
+ - name : (Handler - NGINX App Protect ) Start/reload NGINX
20
20
service :
21
21
name : nginx
22
22
state : reloaded
23
23
enabled : true
24
24
when :
25
25
- nginx_app_protect_start | bool
26
26
- not ansible_check_mode | bool
27
- listen : (Handler) Run NGINX
27
+ listen : (Handler - NGINX App Protect ) Run NGINX
Original file line number Diff line number Diff line change 15
15
mode : 0644
16
16
backup : true
17
17
when : nginx_app_protect_security_policy_template_enable | bool
18
+ notify : (Handler - NGINX App Protect) Run NGINX
18
19
19
20
- name : Dynamically generate NGINX App Protect log policy file
20
21
template :
23
24
mode : 0644
24
25
backup : true
25
26
when : nginx_app_protect_log_policy_template_enable | bool
27
+ notify : (Handler - NGINX App Protect) Run NGINX
26
28
27
29
- name : (DEPRECATED) Backup existing nginx.conf
28
30
copy :
41
43
when :
42
44
- nginx_app_protect_conf_template_enable | bool
43
45
- nginx_app_protect_state != "absent"
46
+ notify : (Handler - NGINX App Protect) Run NGINX
44
47
45
48
- name : (DEPRECATED) Remove NGINX App Protect
46
49
block :
55
58
path : /etc/nginx/nginx.conf
56
59
regexp : ' ^([ \t]*app_protect_)'
57
60
replace : ' # \1'
61
+ notify : (Handler - NGINX App Protect) Run NGINX
58
62
when : nginx_app_protect_state == "absent"
59
-
60
- - name : Reload NGINX
61
- debug :
62
- msg : Trigger nginx reload if needed
63
- notify : (Handler) Run NGINX
64
- when : nginx_app_protect_security_policy_template_enable | bool
65
- or nginx_app_protect_log_policy_template_enable | bool
66
- or nginx_app_protect_conf_template_enable | bool
Original file line number Diff line number Diff line change 22
22
package :
23
23
name : " app-protect{{ nginx_app_protect_version | default('') }}"
24
24
state : " {{ nginx_app_protect_state }}"
25
- notify : (Handler) Run NGINX
25
+ notify : (Handler - NGINX App Protect ) Run NGINX
26
26
27
27
- name : Install latest NGINX App Protect signatures
28
28
package :
29
29
name : app-protect-attack-signatures
30
30
state : " {{ nginx_app_protect_state }}"
31
31
when : nginx_app_protect_install_signatures | bool
32
- notify : (Handler) Run NGINX
32
+ notify : (Handler - NGINX App Protect ) Run NGINX
33
33
34
34
- name : Install latest NGINX App Protect threat campaigns
35
35
package :
36
36
name : app-protect-threat-campaigns
37
37
state : " {{ nginx_app_protect_state }}"
38
38
when : nginx_app_protect_install_threat_campaigns | bool
39
- notify : (Handler) Run NGINX
39
+ notify : (Handler - NGINX App Protect ) Run NGINX
40
40
41
41
- name : Modify NGINX Plus service
42
42
block :
53
53
owner : root
54
54
group : root
55
55
mode : 0644
56
- notify : (Handler) Systemd daemon-reload
56
+ notify : (Handler - NGINX App Protect ) Systemd daemon-reload
57
57
when : nginx_app_protect_timeout is defined
You can’t perform that action at this time.
0 commit comments