ansible-role-nginx/tasks/opensource/setup-redhat.yml
Alessandro Fael Garcia e2b83ac215 Initial role commit
2018-01-10 14:40:01 -08:00

25 lines
685 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/mainline/{{ item }}/{{ ansible_distribution_major_version|int }}/$basearch/
description: NGINX Repository
enabled: yes
gpgcheck: yes
with_items:
- centos
- rhel
when: branch == "stable"