Skip to content

Commit e734a52

Browse files
committed
use rhel subs
1 parent 27a47ec commit e734a52

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ This is a sample playbook file for using the role to install NGINX App Protect o
129129
# Removes the license (certificate and key) for the NGINX App Protect repositories on the target host(s) when playbook run is complete.
130130
app_protect_delete_license: true
131131

132+
# If you have a RHEL subscription, NGINX App Protect's dependencies will use subscription repos.
133+
# Otherwise, it will source packages from CentOS' repositories.
134+
app_protect_use_rhel_subscription_repos: true
135+
132136
# For use with the app_protect_configure option to determine if the default security policy will be written to the target host
133137
# Used when `app_protect_configure: true`.
134138
app_protect_security_policy_template_enable: true

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ app_protect_configure: false
2626
# Removes the license (certificate and key) for the NGINX App Protect repositories on the target host(s) when playbook run is complete.
2727
app_protect_delete_license: true
2828

29+
# If you have a RHEL subscription, NGINX App Protect's dependencies will use subscription repos.
30+
# Otherwise, it will source packages from CentOS' repositories.
31+
app_protect_use_rhel_subscription_repos: true
32+
2933
# Start/Restart NGINX service when App Protect related changes are complete.
3034
# Default is true.
3135
nginx_start: true

tasks/prerequisites/setup-redhat.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
22
- name: "(Install: RedHat) Install Required Dependencies - base"
3-
yum:
3+
package:
44
name: ca-certificates,wget
55
state: present
66

7-
- name: "(Install: RedHat) Install Required Dependencies - epel"
8-
yum:
7+
- name: "(Install: RedHat) Install Required Dependencies - RHEL Subscription"
8+
package:
9+
name: rhel-7-server-optional-rpms,rhel-7-server-rpms
10+
state: latest
11+
when: app_protect_use_rhel_subscription_repos
12+
13+
- name: "(Install: RedHat) Install Required Dependencies - Centos Epel"
14+
package:
915
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
1016
state: latest
17+
when: not app_protect_use_rhel_subscription_repos

0 commit comments

Comments
 (0)