2018-01-10 23:40:01 +01:00
|
|
|
---
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: Debian/Ubuntu) Add Mainline NGINX Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- deb https://nginx.org/packages/mainline/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
|
|
|
|
- deb-src https://nginx.org/packages/mainline/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
|
|
|
|
when: branch == "mainline"
|
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: Debian/Ubuntu) Add Stable NGINX Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
apt_repository:
|
|
|
|
repo: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- deb https://nginx.org/packages/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
|
|
|
|
- deb-src https://nginx.org/packages/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} nginx
|
|
|
|
when: branch == "stable"
|