allow using the mainline repo on redhat

pull/206/head
h3po 4 years ago
parent 485cc835f1
commit ef4ade8267
  1. 1
      defaults/main.yml
  2. 2
      templates/nginx.repo.j2

@ -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