2289b6a070
* Add build from source option * Update to Molecule 3.0 * Add service manager to Debian images * Add .gitignore entry for Ansible retry files Co-authored-by: Alessandro Fael Garcia <alessfg@hotmail.com>
29 lines
785 B
YAML
29 lines
785 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 from source"
|
|
import_tasks: setup-source.yml
|
|
when: nginx_install_from == "source"
|
|
|
|
- name: "(Install: Linux) Install NGINX package"
|
|
package:
|
|
name: "nginx{{ nginx_version | default('') }}"
|
|
state: "{{ nginx_state }}"
|
|
when: nginx_install_from == "os_repository"
|
|
notify: "(Handler: All OSs) Start NGINX"
|