From a5fe8d20b206ce46fe7eef72677ec82d368a7f55 Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Wed, 18 Jul 2018 13:35:04 -0700 Subject: [PATCH] Install NGINX Unit on Amazon Linux 2 --- tasks/unit/setup-redhat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/unit/setup-redhat.yml b/tasks/unit/setup-redhat.yml index 232c0c9..0796fd9 100644 --- a/tasks/unit/setup-redhat.yml +++ b/tasks/unit/setup-redhat.yml @@ -11,7 +11,7 @@ - name: "(Install: Amazon Linux) Add NGINX Unit Repository" yum_repository: name: unit - baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/ + baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_distribution_version == "2") | ternary('2', '') }}/$releasever/$basearch/ description: NGINX Unit Repository enabled: yes gpgcheck: yes