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