ansible-role-nginx/tasks/opensource/setup-redhat.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

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
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
when: branch == "mainline" and ansible_distribution == "RedHat"
2018-01-31 23:41:12 +01:00
- name: "(Install: CentOS) Add Mainline NGINX Repository"
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"
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
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
when: branch == "stable" and ansible_distribution == "CentOS"