ansible-role-nginx/tasks/plus/install-redhat.yml

22 lines
667 B
YAML
Raw Normal View History

2020-09-15 21:27:06 +02:00
---
2020-09-19 17:32:17 +02:00
- name: (Amazon Linux/CentOS/Oracle Linux/RHEL) Configure NGINX Plus repository
2020-09-15 21:27:06 +02:00
yum_repository:
name: nginx-plus
baseurl: "{{ repository }}"
description: NGINX Plus Repository
sslclientcert: /etc/ssl/nginx/nginx-repo.crt
sslclientkey: /etc/ssl/nginx/nginx-repo.key
enabled: yes
gpgcheck: yes
state: "{{ nginx_license_status | default ('present') }}"
mode: 0644
2020-09-19 17:32:17 +02:00
- name: (Amazon Linux/CentOS/Oracle Linux/RHEL) Install NGINX Plus
2020-09-15 21:27:06 +02:00
yum:
name: "nginx-plus{{ nginx_version | default('') }}"
state: "{{ nginx_state }}"
disablerepo: "*"
enablerepo: "nginx-plus"
update_cache: yes
2020-09-19 17:32:17 +02:00
notify: (Handler) Run NGINX