2018-01-10 23:40:01 +01:00
|
|
|
---
|
2018-01-31 23:41:12 +01:00
|
|
|
- name: "(Install: RedHat) Add Mainline NGINX Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx
|
2018-01-31 23:12:25 +01:00
|
|
|
baseurl: https://nginx.org/packages/mainline/rhel/{{ ansible_distribution_major_version|int }}/$basearch/
|
2018-01-10 23:40:01 +01:00
|
|
|
description: NGINX Repository
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2018-01-31 23:12:25 +01:00
|
|
|
when: branch == "mainline" and ansible_distribution == "RedHat"
|
|
|
|
|
2018-01-31 23:41:12 +01:00
|
|
|
- name: "(Install: CentOS) Add Mainline NGINX Repository"
|
2018-01-31 23:12:25 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx
|
|
|
|
baseurl: https://nginx.org/packages/mainline/centos/{{ ansible_distribution_major_version|int }}/$basearch/
|
|
|
|
description: NGINX Repository
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
|
|
|
when: branch == "mainline" and ansible_distribution == "CentOS"
|
|
|
|
|
2018-01-31 23:41:12 +01:00
|
|
|
- name: "(Install: RedHat) Add Stable NGINX Repository"
|
2018-01-31 23:12:25 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx
|
|
|
|
baseurl: https://nginx.org/packages/rhel/{{ ansible_distribution_major_version|int }}/$basearch/
|
|
|
|
description: NGINX Repository
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
|
|
|
when: branch == "stable" and ansible_distribution == "RedHat"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-01-31 23:41:12 +01:00
|
|
|
- name: "(Install: CentOS) Add Stable NGINX Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
yum_repository:
|
|
|
|
name: nginx
|
2018-01-31 23:12:25 +01:00
|
|
|
baseurl: https://nginx.org/packages/centos/{{ ansible_distribution_major_version|int }}/$basearch/
|
2018-01-10 23:40:01 +01:00
|
|
|
description: NGINX Repository
|
|
|
|
enabled: yes
|
|
|
|
gpgcheck: yes
|
2018-01-31 23:12:25 +01:00
|
|
|
when: branch == "stable" and ansible_distribution == "CentOS"
|