From 2ce879f7aabbdfdbb33879daa126e2e2f400ad4b Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Tue, 31 Jul 2018 16:17:09 -0700 Subject: [PATCH] Add Amazon Linux 2 for NGINX Plus --- tasks/plus/setup-redhat.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/plus/setup-redhat.yml b/tasks/plus/setup-redhat.yml index a0e2154..dc340f0 100644 --- a/tasks/plus/setup-redhat.yml +++ b/tasks/plus/setup-redhat.yml @@ -2,7 +2,7 @@ - name: "(Install: CentOS/RedHat/Oracle Linux) Add NGINX Plus Repository" yum_repository: name: nginx-plus - baseurl: https://plus-pkgs.nginx.com/centos/{{ (ansible_distribution_version|float < 7.4) | ternary(ansible_distribution_major_version|int, 7.4) }}/$basearch/ + baseurl: https://plus-pkgs.nginx.com/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}/{{ (ansible_distribution_version|float < 7.4) | ternary(ansible_distribution_major_version|int, 7.4) }}/$basearch/ description: NGINX Plus Repository sslclientcert: /etc/ssl/nginx/nginx-repo.crt sslclientkey: /etc/ssl/nginx/nginx-repo.key @@ -13,7 +13,7 @@ - name: "(Install: Amazon Linux) Add NGINX Plus Repository" yum_repository: name: nginx-plus - baseurl: https://plus-pkgs.nginx.com/amzn/$releasever/$basearch + baseurl: https://plus-pkgs.nginx.com/amzn{{ (ansible_distribution_version == "2") | ternary('2', '') }}/$releasever/$basearch description: NGINX Plus Repository sslclientcert: /etc/ssl/nginx/nginx-repo.crt sslclientkey: /etc/ssl/nginx/nginx-repo.key