2019-11-26 14:15:55 +01:00
|
|
|
---
|
2020-06-30 18:59:53 +02:00
|
|
|
- include_tasks: "{{ role_path }}/tasks/plus/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"
|
2019-12-11 21:45:12 +01:00
|
|
|
|
2020-06-30 18:59:53 +02:00
|
|
|
- name: "(Install: Linux) Modify Service for Systemd"
|
|
|
|
include_tasks: "{{ role_path }}/tasks/prerequisites/setup-systemd.yml"
|
|
|
|
when:
|
|
|
|
- ansible_service_mgr == "systemd"
|
|
|
|
- nginx_service_modify
|
2019-11-26 14:15:55 +01:00
|
|
|
|
|
|
|
- name: "(Install: Linux) Install NGINX Plus"
|
|
|
|
package:
|
|
|
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
2019-12-07 01:48:15 +01:00
|
|
|
state: "{{ nginx_state }}"
|
2019-11-26 14:15:55 +01:00
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|