allow using the mainline repo on redhat
This commit is contained in:
parent
485cc835f1
commit
ef4ade8267
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue