ansible-role-nginx/tasks/unit/setup-redhat.yml
2018-04-06 16:32:48 -07:00

28 lines
827 B
YAML

---
- name: "(Install: RedHat) Add NGINX Unit Repository"
yum_repository:
name: nginx
baseurl: https://packages.nginx.org/unit/rhel/$releasever/$basearch/
description: NGINX Repository
enabled: yes
gpgcheck: yes
when: ansible_distribution == "RedHat"
- name: "(Install: CentOS) Add NGINX Unit Repository"
yum_repository:
name: nginx
baseurl: https://packages.nginx.org/unit/centos/$releasever/$basearch/
description: NGINX Repository
enabled: yes
gpgcheck: yes
when: ansible_distribution == "CentOS"
- name: "(Install: Amazon Linux) Add NGINX Unit Repository"
yum_repository:
name: nginx
baseurl: https://packages.nginx.org/unit/amzn/$releasever/$basearch/
description: NGINX Repository
enabled: yes
gpgcheck: yes
when: ansible_distribution == "Amazon"