2018-01-10 23:40:01 +01:00
|
|
|
---
|
2019-11-22 15:52:34 +01:00
|
|
|
- name: "(Install: SUSE) Set Default SUSE NGINX Repository"
|
|
|
|
set_fact:
|
|
|
|
default_repository: >-
|
|
|
|
https://nginx.org/packages/{{ (nginx_branch == 'mainline')
|
|
|
|
| ternary('mainline/', '') }}sles/{{ ansible_distribution_major_version }}
|
|
|
|
|
|
|
|
- name: "(Install: SUSE) Set SUSE NGINX Repository"
|
|
|
|
set_fact:
|
|
|
|
repository: "{{ nginx_repository | default(default_repository) }}"
|
|
|
|
|
2018-05-12 00:12:06 +02:00
|
|
|
- name: "(Install: SUSE) Add NGINX Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
zypper_repository:
|
2019-05-20 18:32:08 +02:00
|
|
|
name: "nginx-{{ nginx_branch }}"
|
2019-11-22 15:52:34 +01:00
|
|
|
repo: "{{ repository }}"
|
2019-11-24 02:10:55 +01:00
|
|
|
|
|
|
|
- name: "(Install: SUSE) Install NGINX"
|
|
|
|
zypper:
|
|
|
|
name: "nginx{{ nginx_version | default('') }}"
|
2019-12-07 01:48:15 +01:00
|
|
|
state: "{{ nginx_state }}"
|
2019-11-24 02:10:55 +01:00
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|