allow using the mainline repo on redhat

This commit is contained in:
h3po 2020-08-13 12:51:09 +02:00
parent 485cc835f1
commit ef4ade8267
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ nginx_default_release: ""
# Used only for Redhat installation, enables source Nginx repo.
nginx_yum_repo_enabled: true
nginx_yum_repo_mainline: false
# Use the official Nginx PPA for Ubuntu, and the version to use if so.
nginx_ppa_use: false

View File

@ -1,5 +1,5 @@
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/{{ ansible_distribution_major_version }}/$basearch/
baseurl=http://nginx.org/packages{{ '/mainline' if nginx_yum_repo_mainline }}/centos/{{ ansible_distribution_major_version }}/$basearch/
gpgcheck=0
enabled=1