File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 2
2
- name : " (Install: RedHat) Add NGINX Unit Repository"
3
3
yum_repository :
4
4
name : nginx
5
- baseurl : https://packages.nginx.org/unit/rhel/$releasever/$basearch/
5
+ baseurl : https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary(' rhel/', 'centos/') }} $releasever/$basearch/
6
6
description : NGINX Repository
7
7
enabled : yes
8
8
gpgcheck : yes
9
- when : ansible_distribution == "RedHat"
10
-
11
- - name : " (Install: CentOS) Add NGINX Unit Repository"
12
- yum_repository :
13
- name : nginx
14
- baseurl : https://packages.nginx.org/unit/centos/$releasever/$basearch/
15
- description : NGINX Repository
16
- enabled : yes
17
- gpgcheck : yes
18
- when : ansible_distribution == "CentOS"
9
+ when : ansible_distribution != "Amazon"
19
10
20
11
- name : " (Install: Amazon Linux) Add NGINX Unit Repository"
21
12
yum_repository :
You can’t perform that action at this time.
0 commit comments