2018-04-07 01:32:48 +02:00
|
|
|
---
|
2018-06-27 20:07:35 +02:00
|
|
|
- name: "(Install: CentOS/RedHat) Add NGINX Unit Repository"
|
2018-04-07 01:32:48 +02:00
|
|
|
yum_repository:
|
2018-06-27 20:07:35 +02:00
|
|
|
name: unit
|
2018-06-27 01:26:24 +02:00
|
|
|
baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/
|
2018-06-27 20:07:35 +02:00
|
|
|
description: NGINX Unit Repository
|
2018-04-07 01:32:48 +02:00
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2018-06-27 01:26:24 +02:00
|
|
|
when: ansible_distribution != "Amazon"
|
2018-04-07 01:32:48 +02:00
|
|
|
|
|
|
|
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
|
|
|
|
yum_repository:
|
2018-06-27 20:07:35 +02:00
|
|
|
name: unit
|
2018-04-07 01:32:48 +02:00
|
|
|
baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/
|
2018-06-27 20:07:35 +02:00
|
|
|
description: NGINX Unit Repository
|
2018-04-07 01:32:48 +02:00
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
|
|
|
when: ansible_distribution == "Amazon"
|