From ef4ade826791d6260c6e3479eaffe85ff968b7d8 Mon Sep 17 00:00:00 2001 From: h3po Date: Thu, 13 Aug 2020 12:51:09 +0200 Subject: [PATCH] allow using the mainline repo on redhat --- defaults/main.yml | 1 + templates/nginx.repo.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 0509dbe..ff5cb90 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/nginx.repo.j2 b/templates/nginx.repo.j2 index 9a853b7..46df323 100644 --- a/templates/nginx.repo.j2 +++ b/templates/nginx.repo.j2 @@ -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