Install nginx from nginx official or distribution package repos #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The distribution package repositories tend to significantly lag
ngnix releases delaying the availability of critical fixes and
new features. The ngninx project provides package repositories
from which the latest stable and mainline releases can be installed.
This patch adds support for installing from the nginx package
repositories while maintaining the default functionality of installing
from distribution repositories.
The nginx project provides repositories for the following distributions:
To support usage of the correct package repository based on the
distribution, the role was refactored to use distribution specific
variable files and the installation tasks were split out based on
ansible_os_family
. The installation of the EPEL repository was alsorefactored to use the installation RPMs provided by the Fedora project.
Finally, all bare variables warnings were resolved and
tasks/main.yml
was converted to be correct YAML.N.B.
tasks\ubuntu.yml
yields a warning regarding the use ofcurl
. Unfortunately, the version of Python shipped by default withUbuntu 14.04 and 16.04 is too old to download the signing key via HTTPS.
Therefore, the
get_url
anduri
modules fail with SSL errors.curl
is used as a workaround for this incompatibility.