2019-11-18 21:09:10 +01:00
|
|
|
---
|
2020-07-28 12:26:38 +02:00
|
|
|
- name: "(Install: Linux) Configure NGINX Repository"
|
2020-06-30 18:59:53 +02:00
|
|
|
include_tasks: "{{ role_path }}/tasks/opensource/setup-{{ ansible_os_family | lower }}.yml"
|
|
|
|
when:
|
|
|
|
- ansible_os_family == "Alpine"
|
|
|
|
or ansible_os_family == "Debian"
|
|
|
|
or ansible_os_family == "RedHat"
|
|
|
|
or ansible_os_family == "Suse"
|
|
|
|
- nginx_install_from == "nginx_repository"
|
2019-11-18 21:09:10 +01:00
|
|
|
|
2020-07-28 12:26:38 +02:00
|
|
|
- name: "(Install: Linux) Modify Service For Systemd"
|
2020-06-30 18:59:53 +02:00
|
|
|
include_tasks: "{{ role_path }}/tasks/prerequisites/setup-systemd.yml"
|
|
|
|
when:
|
|
|
|
- ansible_service_mgr == "systemd"
|
2020-08-28 10:30:23 +02:00
|
|
|
- nginx_service_modify | bool
|
2019-11-18 21:09:10 +01:00
|
|
|
|
2020-07-28 12:26:38 +02:00
|
|
|
- name: "(Install: Linux) Install NGINX From Source"
|
2020-06-30 18:59:53 +02:00
|
|
|
include_tasks: "{{ role_path }}/tasks/opensource/setup-source.yml"
|
2020-03-25 18:43:32 +01:00
|
|
|
when: nginx_install_from == "source"
|
|
|
|
|
2020-07-28 12:26:38 +02:00
|
|
|
- name: "(Install: Linux) Install NGINX Package"
|
2019-11-18 21:09:10 +01:00
|
|
|
package:
|
|
|
|
name: "nginx{{ nginx_version | default('') }}"
|
2019-12-07 01:48:15 +01:00
|
|
|
state: "{{ nginx_state }}"
|
2019-11-26 22:12:09 +01:00
|
|
|
when: nginx_install_from == "os_repository"
|
2019-11-18 21:09:10 +01:00
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|