f6c48c12d6
* Use distro specific Ansible modules to install NGINX * Install NGINX directly in Alpine distributions from the official repository to avoid naming conflicts * Set travis_wait parameter to max timeout setting
21 lines
665 B
YAML
21 lines
665 B
YAML
---
|
|
- 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) }}"
|
|
|
|
- name: "(Install: SUSE) Add NGINX Repository"
|
|
zypper_repository:
|
|
name: "nginx-{{ nginx_branch }}"
|
|
repo: "{{ repository }}"
|
|
|
|
- name: "(Install: SUSE) Install NGINX"
|
|
zypper:
|
|
name: "nginx{{ nginx_version | default('') }}"
|
|
notify: "(Handler: All OSs) Start NGINX"
|