Skip to content

Commit a5fe8d2

Browse files
committed
Install NGINX Unit on Amazon Linux 2
1 parent 962518e commit a5fe8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/unit/setup-redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
1212
yum_repository:
1313
name: unit
14-
baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/
14+
baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_distribution_version == "2") | ternary('2', '') }}/$releasever/$basearch/
1515
description: NGINX Unit Repository
1616
enabled: yes
1717
gpgcheck: yes

0 commit comments

Comments
 (0)