bf2916fc55
* Explicitly define `mode` in relevant tasks. * Explicitly define the `nginx` `apt_repository` filename in Debian based distros. * Building OpenSSL from source should now work properly in CentOS 8.
21 lines
725 B
YAML
21 lines
725 B
YAML
---
|
|
- name: "(Install: CentOS/RedHat) Add NGINX Unit Repository"
|
|
yum_repository:
|
|
name: unit
|
|
baseurl: https://packages.nginx.org/unit/{{ (ansible_distribution == "RedHat") | ternary('rhel/', 'centos/') }}$releasever/$basearch/
|
|
description: NGINX Unit Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
mode: 0644
|
|
when: ansible_distribution != "Amazon"
|
|
|
|
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
|
|
yum_repository:
|
|
name: unit
|
|
baseurl: https://packages.nginx.org/unit/amzn{{ (ansible_distribution_version == "2") | ternary('2', '') }}/$releasever/$basearch/
|
|
description: NGINX Unit Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
mode: 0644
|
|
when: ansible_distribution == "Amazon"
|