2018-01-10 23:40:01 +01:00
|
|
|
---
|
|
|
|
- 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
|
2018-01-17 19:12:14 +01:00
|
|
|
baseurl: https://nginx.org/packages/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
|
2018-01-10 23:40:01 +01:00
|
|
|
description: NGINX Repository
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
|
|
|
with_items:
|
|
|
|
- centos
|
|
|
|
- rhel
|
|
|
|
when: branch == "stable"
|