2019-11-18 21:09:10 +01:00
|
|
|
---
|
|
|
|
- name: "(Install: Linux) Configure NGINX repo"
|
|
|
|
block:
|
|
|
|
|
2019-11-22 15:52:34 +01:00
|
|
|
- import_tasks: setup-alpine.yml
|
|
|
|
when: ansible_os_family == "Alpine"
|
|
|
|
|
2019-11-18 21:09:10 +01:00
|
|
|
- import_tasks: setup-debian.yml
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
|
|
- import_tasks: setup-redhat.yml
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
- import_tasks: setup-suse.yml
|
|
|
|
when: ansible_os_family == "Suse"
|
|
|
|
|
2019-11-24 02:10:55 +01:00
|
|
|
when:
|
|
|
|
- nginx_install_from == "nginx_repository"
|
2019-11-18 21:09:10 +01:00
|
|
|
|
|
|
|
- name: "(Install: Linux) Install NGINX package"
|
|
|
|
package:
|
|
|
|
name: "nginx{{ nginx_version | default('') }}"
|
|
|
|
state: present
|
2019-11-24 02:10:55 +01:00
|
|
|
when:
|
|
|
|
- nginx_install_from == "os_repository"
|
2019-11-18 21:09:10 +01:00
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|