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
27 lines
659 B
YAML
27 lines
659 B
YAML
---
|
|
- name: "(Install: Linux) Configure NGINX repo"
|
|
block:
|
|
|
|
- import_tasks: setup-alpine.yml
|
|
when: ansible_os_family == "Alpine"
|
|
|
|
- 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"
|
|
|
|
when:
|
|
- nginx_install_from == "nginx_repository"
|
|
|
|
- name: "(Install: Linux) Install NGINX package"
|
|
package:
|
|
name: "nginx{{ nginx_version | default('') }}"
|
|
state: present
|
|
when:
|
|
- nginx_install_from == "os_repository"
|
|
notify: "(Handler: All OSs) Start NGINX"
|