19 lines
618 B
YAML
19 lines
618 B
YAML
---
|
|
- name: "(Install: RedHat) Add NGINX Unit Repository"
|
|
yum_repository:
|
|
name: nginx
|
|
baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/
|
|
description: NGINX Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
when: ansible_distribution != "Amazon"
|
|
|
|
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
|
|
yum_repository:
|
|
name: nginx
|
|
baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/
|
|
description: NGINX Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
when: ansible_distribution == "Amazon"
|