Merge pull request #2 from nginxinc/(bug)/fix-setup-redhat
Setup CentOS/RHEL repositories correctly
This commit is contained in:
commit
2357c80bba
@ -2,23 +2,35 @@
|
|||||||
- name: "(Install: CentOS/RedHat) Add Mainline NGINX Repository"
|
- name: "(Install: CentOS/RedHat) Add Mainline NGINX Repository"
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: nginx
|
name: nginx
|
||||||
baseurl: https://nginx.org/packages/mainline/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
|
baseurl: https://nginx.org/packages/mainline/rhel/{{ ansible_distribution_major_version|int }}/$basearch/
|
||||||
description: NGINX Repository
|
description: NGINX Repository
|
||||||
enabled: yes
|
enabled: yes
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
with_items:
|
when: branch == "mainline" and ansible_distribution == "RedHat"
|
||||||
- centos
|
|
||||||
- rhel
|
- name: "(Install: CentOS/RedHat) Add Mainline NGINX Repository"
|
||||||
when: branch == "mainline"
|
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"
|
||||||
|
|
||||||
- name: "(Install: CentOS/RedHat) Add Stable NGINX Repository"
|
- name: "(Install: CentOS/RedHat) Add Stable NGINX Repository"
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: nginx
|
name: nginx
|
||||||
baseurl: https://nginx.org/packages/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
|
baseurl: https://nginx.org/packages/rhel/{{ ansible_distribution_major_version|int }}/$basearch/
|
||||||
description: NGINX Repository
|
description: NGINX Repository
|
||||||
enabled: yes
|
enabled: yes
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
with_items:
|
when: branch == "stable" and ansible_distribution == "RedHat"
|
||||||
- centos
|
|
||||||
- rhel
|
- name: "(Install: CentOS/RedHat) Add Stable NGINX Repository"
|
||||||
when: branch == "stable"
|
yum_repository:
|
||||||
|
name: nginx
|
||||||
|
baseurl: https://nginx.org/packages/centos/{{ ansible_distribution_major_version|int }}/$basearch/
|
||||||
|
description: NGINX Repository
|
||||||
|
enabled: yes
|
||||||
|
gpgcheck: yes
|
||||||
|
when: branch == "stable" and ansible_distribution == "CentOS"
|
||||||
|
Loading…
Reference in New Issue
Block a user