Skip to content

Commit 0f3dea6

Browse files
committed
add support for rhel, remove selinux config (now in rpm)
1 parent 87e945b commit 0f3dea6

File tree

6 files changed

+25
-229
lines changed

6 files changed

+25
-229
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ CentOS:
5050
- 8.0
5151
- 8.1
5252
- 8.2
53+
RHEL:
54+
versions:
55+
- 7.4
56+
- 7.5
57+
- 7.6
58+
- 7.7
59+
- 7.8
60+
- 8.0
61+
- 8.1
62+
- 8.2
5363
Debian:
5464
versions:
5565
- 9.0
@@ -78,7 +88,7 @@ Dependencies
7888

7989
- Since this role uses the [package_facts](https://docs.ansible.com/ansible/latest/modules/package_facts_module.html) module, on debian-based systems the `python-apt` package must be installed on targeted hosts.
8090

81-
- NGINX+ R19-R21 must already be installed on the target system
91+
- NGINX+ R20-R22 must already be installed on the target system
8292

8393
Example Playbook
8494
----------------
@@ -101,11 +111,7 @@ This is a sample playbook file for using the role to install NGINX App Protect o
101111
app_protect_state: present
102112

103113
# OPTIONAL: Installs a specific version of NGINX App Protect
104-
app_protect_version: 21
105-
106-
# Enable enforcing selinux (you may need to open ports on your own)
107-
# WARNING: If this is set to false and you are installing NGINX Protect on a system with SELinux enforced, NGINX App Protect may fail to load.
108-
app_protect_selinux: false
114+
app_protect_version: 22
109115

110116
# The installation of NGINX App Protect includes a base signature set, which may be out of date.
111117
# This option installs the latest NGINX App Protect signatures.
@@ -158,7 +164,7 @@ This is a sample playbook file for using the role to install NGINX App Protect o
158164
key: "{{playbook_dir}}/license/nginx-repo.key"
159165

160166
roles:
161-
- role: ansible-role-nginx-app-protect
167+
- role: nginxinc.nginx_app_protect
162168
```
163169
164170
This is a sample playbook file for deploying the Ansible Galaxy NGINX App Protect role in a localhost and installing NGINX App Protect on NGINX Plus.

defaults/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@
1010
app_protect_state: present
1111

1212
# # OPTIONAL: Installs a specific version of NGINX App Protect
13-
# app_protect_version: 20
14-
15-
# Enable enforcing selinux (you may need to open ports on your own)
16-
app_protect_selinux: false
17-
18-
# Enable enforcing mode if true. Permissive if false (audit only, no enforcing) globally (only works with app_protect_selinux: true)
19-
app_protect_selinux_enforcing: true
13+
# app_protect_version: 22
2014

2115
# The installation of NGINX App Protect includes a base signature set, which may be out of date.
2216
# This option installs the latest NGINX App Protect signatures.
@@ -46,7 +40,7 @@ app_protect_tempdir: /tmp
4640
# Default is the official NGINX App Protect signing key host.
4741
# app_protect_signing_key: https://cs.nginx.com/static/keys/app-protect.key
4842

49-
# populate this dictionary of lists with appropriate values from the ansible_os_family and ansible_distribution_version facts
43+
# populate this dictionary of lists with appropriate values from the ansible_distribution and ansible_distribution_version facts
5044
app_protect_linux_families:
5145
CentOS:
5246
- 7.4
@@ -57,6 +51,15 @@ app_protect_linux_families:
5751
- 8.0
5852
- 8.1
5953
- 8.2
54+
RedHat:
55+
- 7.4
56+
- 7.5
57+
- 7.6
58+
- 7.7
59+
- 7.8
60+
- 8.0
61+
- 8.1
62+
- 8.2
6063
Debian:
6164
- 9.0
6265
- 9.1

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
min_ansible_version: 2.7
1010

1111
platforms:
12-
- name: CentOS
12+
- name: EL
1313
versions:
1414
- 7
1515
- 8

tasks/configure-selinux.yml

Lines changed: 0 additions & 135 deletions
This file was deleted.

tasks/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@
8383

8484
when: app_protect_state != "absent"
8585

86-
- name: "(Install: CentOS) Setup SELinux"
87-
include_tasks: "{{ role_path }}/tasks/configure-selinux.yml"
88-
when:
89-
- app_protect_selinux
90-
- ansible_os_family == "RedHat"
9186

9287
- name: "Remove NGINX App Protect"
9388
block:

templates/nginx-plus-module-appprotect.te.j2

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)