File tree Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## 0.5.1 (Unreleased)
4
4
5
+ FEATURES:
6
+
7
+ Add a ` nginx_app_protect_manage_repo ` feature flag which can be used to disable NGINX App Protect repo management by this role.
8
+
5
9
ENHANCEMENTS:
6
10
7
11
* Replace Ansible base with Ansible core. Ansible core will be the "core" Ansible release moving forward from Ansible ` 2.11 ` .
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ nginx_app_protect_install_threat_campaigns: true
35
35
# nginx_plus: https://cs.nginx.com/static/keys/nginx_signing.key
36
36
# security_updates: https://cs.nginx.com/static/keys/app-protect-security-updates.key
37
37
38
+ # Specify whether or not you want to manage the NGINX App Protect repositories.
39
+ # Using 'true' will manage NGINX App Protect repositories.
40
+ # Using 'false' will not manage the NGINX App Protect repositories, allowing them to be managed through other means.
41
+ # Default is true
42
+ nginx_app_protect_manage_repo : true
43
+
38
44
# (Optional) Specify repository for NGINX Plus.
39
45
# Defaults are the official NGINX repositories.
40
46
# nginx_plus_repository: deb [arch=amd64] https://pkgs.nginx.com/plus/debian buster nginx-plus
Original file line number Diff line number Diff line change 5
5
insertafter : EOF
6
6
line : " {{ nginx_plus_repository | default(nginx_plus_default_repository_alpine) }}"
7
7
state : " {{ nginx_license_status | default ('present') }}"
8
+ when : nginx_app_protect_manage_repo | bool
8
9
9
10
- name : (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect repository
10
11
lineinfile :
11
12
path : /etc/apk/repositories
12
13
insertafter : EOF
13
14
line : " {{ nginx_app_protect_repository | default(nginx_app_protect_default_repository_alpine) }}"
14
15
state : " {{ nginx_license_status | default ('present') }}"
16
+ when : nginx_app_protect_manage_repo | bool
15
17
16
18
- name : (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect security updates repository
17
19
lineinfile :
18
20
path : /etc/apk/repositories
19
21
insertafter : EOF
20
22
line : " {{ nginx_app_protect_security_updates_repository | default(nginx_app_protect_security_updates_default_repository_alpine) }}"
21
23
state : " {{ nginx_license_status | default ('present') }}"
22
- when : nginx_app_protect_install_signatures | bool
23
- or nginx_app_protect_install_threat_campaigns | bool
24
+ when :
25
+ - (nginx_app_protect_install_signatures | bool) or (nginx_app_protect_install_threat_campaigns | bool)
26
+ - nginx_app_protect_manage_repo | bool
24
27
25
28
- name : (Alpine Linux) Install NGINX App Protect
26
29
apk :
Original file line number Diff line number Diff line change 45
45
mode : 0644
46
46
update_cache : false
47
47
state : " {{ nginx_app_protect_license_status | default ('present') }}"
48
+ when : nginx_app_protect_manage_repo | bool
48
49
49
50
- name : (Debian/Ubuntu) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect repository
50
51
apt_repository :
53
54
mode : 0644
54
55
update_cache : false
55
56
state : " {{ nginx_app_protect_license_status | default ('present') }}"
57
+ when : nginx_app_protect_manage_repo | bool
56
58
57
59
- name : (Debian/Ubuntu) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect security updates repository
58
60
apt_repository :
61
63
mode : 0644
62
64
update_cache : false
63
65
state : " {{ nginx_app_protect_license_status | default ('present') }}"
64
- when : nginx_app_protect_install_signatures | bool
65
- or nginx_app_protect_install_threat_campaigns | bool
66
+ when :
67
+ - (nginx_app_protect_install_signatures | bool) or (nginx_app_protect_install_threat_campaigns | bool)
68
+ - nginx_app_protect_manage_repo | bool
66
69
67
70
- name : (Debian/Ubuntu) Install NGINX App Protect
68
71
apt :
Original file line number Diff line number Diff line change 20
20
enabled : true
21
21
gpgcheck : true
22
22
state : " {{ nginx_app_protect_license_status | default ('present') }}"
23
+ when : nginx_app_protect_manage_repo | bool
23
24
24
25
- name : (CentOS/RHEL) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect security updates repository
25
26
yum_repository :
31
32
enabled : true
32
33
gpgcheck : true
33
34
state : " {{ nginx_app_protect_license_status | default ('present') }}"
34
- when : nginx_app_protect_install_signatures | bool
35
- or nginx_app_protect_install_threat_campaigns | bool
35
+ when :
36
+ - (nginx_app_protect_install_signatures | bool) or (nginx_app_protect_install_threat_campaigns | bool)
37
+ - nginx_app_protect_manage_repo | bool
36
38
37
39
- name : (CentOS/RHEL) Install NGINX App Protect
38
40
yum :
You can’t perform that action at this time.
0 commit comments