Change rpm module and add package check for RHEL/CentOS 7.4+
This commit is contained in:
parent
af69957251
commit
5e3ad77986
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: "(Install: RPM OSs) Add RPM NGINX Signing Key"
|
- name: "(Install: RPM OSs) Add RPM NGINX Signing Key"
|
||||||
rpm_key:
|
rpm_key:
|
||||||
key: https://nginx.org/keys/nginx_signing.key
|
key: "{{ (ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 6) | ternary('http://nginx.org/keys/nginx_signing.key', 'https://nginx.org/keys/nginx_signing.key') }}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: "(Install: CentOS/RedHat/Oracle Linux) Add NGINX Plus Repository"
|
- name: "(Install: CentOS/RedHat/Oracle Linux) Add NGINX Plus Repository"
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: nginx-plus
|
name: nginx-plus
|
||||||
baseurl: https://plus-pkgs.nginx.com/centos/{{ ansible_distribution_major_version|int }}/$basearch/
|
baseurl: https://plus-pkgs.nginx.com/centos/{{ (ansible_distribution_version|float < 7.4) | ternary(ansible_distribution_major_version|int, 7.4) }}/$basearch/
|
||||||
description: NGINX Plus Repository
|
description: NGINX Plus Repository
|
||||||
sslclientcert: /etc/ssl/nginx/nginx-repo.crt
|
sslclientcert: /etc/ssl/nginx/nginx-repo.crt
|
||||||
sslclientkey: /etc/ssl/nginx/nginx-repo.key
|
sslclientkey: /etc/ssl/nginx/nginx-repo.key
|
||||||
|
Loading…
Reference in New Issue
Block a user