2018-01-10 23:40:01 +01:00
|
|
|
---
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: CentOS/RedHat/Oracle Linux) Setup NGINX Plus Repository"
|
2018-03-02 01:15:27 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx-plus
|
2019-05-21 17:23:06 +02:00
|
|
|
baseurl: >-
|
2019-08-03 12:53:21 +02:00
|
|
|
https://plus-pkgs.nginx.com/centos/{{ (ansible_distribution_version | float >= 7.4 and ansible_distribution_version | float < 8.0)
|
2019-05-21 17:23:06 +02:00
|
|
|
| ternary(ansible_distribution_major_version | int, 7.4) }}/$basearch/
|
2018-03-02 01:15:27 +01:00
|
|
|
description: NGINX Plus Repository
|
|
|
|
sslclientcert: /etc/ssl/nginx/nginx-repo.crt
|
|
|
|
sslclientkey: /etc/ssl/nginx/nginx-repo.key
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2019-12-11 21:45:12 +01:00
|
|
|
state: "{{ nginx_license_status | default ('present') }}"
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2018-03-02 01:15:27 +01:00
|
|
|
when: ansible_distribution != "Amazon"
|
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Amazon Linux) Setup NGINX Plus Repository"
|
2018-03-02 01:15:27 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx-plus
|
2019-05-21 17:23:06 +02:00
|
|
|
baseurl: >-
|
|
|
|
https://plus-pkgs.nginx.com/amzn{{ (ansible_distribution_version == "2")
|
|
|
|
| ternary('2', '') }}/$releasever/$basearch
|
2018-03-02 01:15:27 +01:00
|
|
|
description: NGINX Plus Repository
|
|
|
|
sslclientcert: /etc/ssl/nginx/nginx-repo.crt
|
|
|
|
sslclientkey: /etc/ssl/nginx/nginx-repo.key
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2019-12-11 21:45:12 +01:00
|
|
|
state: "{{ nginx_license_status | default ('present') }}"
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2018-03-02 01:15:27 +01:00
|
|
|
when: ansible_distribution == "Amazon"
|