Skip to content

Commit

Permalink
Add 'nginx_install_epel_release' feature flag to disable the installa…
Browse files Browse the repository at this point in the history
…tion of epel-release if so desired (nginxinc#421)

Co-authored-by: Jurgen Verhasselt <hello@sjugge.be>
  • Loading branch information
2 people authored and alessfg committed Jun 14, 2021
1 parent 8976892 commit f1272ef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 0.21.0 (Unreleased)

FEATURES:

* Add a `nginx_install_epel_release` feature flag which allows epel-release to not be installed by this role if so desired.

## 0.20.0 (June 9, 2021)

BREAKING CHANGES:
Expand Down
6 changes: 6 additions & 0 deletions defaults/main/main.yml
Expand Up @@ -40,6 +40,12 @@ nginx_state: present
# Default is nginx_repository.
nginx_install_from: nginx_repository

# Specify whether or not you want this role to install the epel-release package.
# Using 'true' will install epel-release if other criteria are met.
# Using 'false' will not install epel-release.
# Default is true.
nginx_install_epel_release: true

# Specify source install options for NGINX Open Source.
# Options represent whether to install from source also or to install from packages (default).
# These only apply if 'nginx_install_from' is set to 'source'.
Expand Down
1 change: 1 addition & 0 deletions tasks/modules/install-modules.yml
Expand Up @@ -5,6 +5,7 @@
when:
- ansible_facts['distribution'] == "CentOS"
- '"geoip" in nginx_modules'
- nginx_install_epel_release | bool

- name: Install NGINX modules
package:
Expand Down

0 comments on commit f1272ef

Please sign in to comment.