0e40a9e00f
Both tasks in setup-redhat.yml now correctly install the mainline or stable branch of open source NGINX
25 lines
676 B
YAML
25 lines
676 B
YAML
---
|
|
- name: "(CentOS/RedHat) Add Mainline NGINX Repository"
|
|
yum_repository:
|
|
name: nginx
|
|
baseurl: https://nginx.org/packages/mainline/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
|
|
description: NGINX Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
with_items:
|
|
- centos
|
|
- rhel
|
|
when: branch == "mainline"
|
|
|
|
- name: "(CentOS/RedHat) Add Stable NGINX Repository"
|
|
yum_repository:
|
|
name: nginx
|
|
baseurl: https://nginx.org/packages/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
|
|
description: NGINX Repository
|
|
enabled: yes
|
|
gpgcheck: yes
|
|
with_items:
|
|
- centos
|
|
- rhel
|
|
when: branch == "stable"
|