ansible-role-nginx/tasks/opensource/setup-suse.yml

21 lines
665 B
YAML
Raw Normal View History

2018-01-10 23:40:01 +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:
name: "nginx-{{ nginx_branch }}"
repo: "{{ repository }}"
- name: "(Install: SUSE) Install NGINX"
zypper:
name: "nginx{{ nginx_version | default('') }}"
notify: "(Handler: All OSs) Start NGINX"