2020-09-15 21:27:06 +02:00
|
|
|
## DEPRECATED -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit)
|
2018-04-07 01:32:48 +02:00
|
|
|
---
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (DEPRECATED) Add NGINX Unit Repository
|
2018-04-07 01:32:48 +02:00
|
|
|
yum_repository:
|
2018-06-27 20:07:35 +02:00
|
|
|
name: unit
|
2020-09-15 21:27:06 +02:00
|
|
|
baseurl: https://packages.nginx.org/unit/{{ (ansible_facts['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
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['distribution'] != "Amazon"
|
2018-04-07 01:32:48 +02:00
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (DEPRECATED) Add NGINX Unit Repository
|
2018-04-07 01:32:48 +02:00
|
|
|
yum_repository:
|
2018-06-27 20:07:35 +02:00
|
|
|
name: unit
|
2020-09-15 21:27:06 +02:00
|
|
|
baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_facts['distribution_version'] == "2") | ternary('2', '') }}/$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
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['distribution'] == "Amazon"
|