Merge CentOS and RedHat tasks
This commit is contained in:
parent
02db93d432
commit
a6d54c858e
@ -2,20 +2,11 @@
|
|||||||
- name: "(Install: RedHat) Add NGINX Unit Repository"
|
- name: "(Install: RedHat) Add NGINX Unit Repository"
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: nginx
|
name: nginx
|
||||||
baseurl: https://packages.nginx.org/unit/rhel/$releasever/$basearch/
|
baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/
|
||||||
description: NGINX Repository
|
description: NGINX Repository
|
||||||
enabled: yes
|
enabled: yes
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
when: ansible_distribution == "RedHat"
|
when: ansible_distribution != "Amazon"
|
||||||
|
|
||||||
- name: "(Install: CentOS) Add NGINX Unit Repository"
|
|
||||||
yum_repository:
|
|
||||||
name: nginx
|
|
||||||
baseurl: https://packages.nginx.org/unit/centos/$releasever/$basearch/
|
|
||||||
description: NGINX Repository
|
|
||||||
enabled: yes
|
|
||||||
gpgcheck: yes
|
|
||||||
when: ansible_distribution == "CentOS"
|
|
||||||
|
|
||||||
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
|
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
|
||||||
yum_repository:
|
yum_repository:
|
||||||
|
Loading…
Reference in New Issue
Block a user