Skip to content

Commit f1272ef

Browse files
sjuggeJurgen Verhasselt
authored andcommitted
Add 'nginx_install_epel_release' feature flag to disable the installation of epel-release if so desired (#421)
Co-authored-by: Jurgen Verhasselt <[email protected]>
1 parent 8976892 commit f1272ef

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.21.0 (Unreleased)
4+
5+
FEATURES:
6+
7+
* Add a `nginx_install_epel_release` feature flag which allows epel-release to not be installed by this role if so desired.
8+
39
## 0.20.0 (June 9, 2021)
410

511
BREAKING CHANGES:

defaults/main/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ nginx_state: present
4040
# Default is nginx_repository.
4141
nginx_install_from: nginx_repository
4242

43+
# Specify whether or not you want this role to install the epel-release package.
44+
# Using 'true' will install epel-release if other criteria are met.
45+
# Using 'false' will not install epel-release.
46+
# Default is true.
47+
nginx_install_epel_release: true
48+
4349
# Specify source install options for NGINX Open Source.
4450
# Options represent whether to install from source also or to install from packages (default).
4551
# These only apply if 'nginx_install_from' is set to 'source'.

tasks/modules/install-modules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
when:
66
- ansible_facts['distribution'] == "CentOS"
77
- '"geoip" in nginx_modules'
8+
- nginx_install_epel_release | bool
89

910
- name: Install NGINX modules
1011
package:

0 commit comments

Comments
 (0)