bf2916fc55
* Explicitly define `mode` in relevant tasks. * Explicitly define the `nginx` `apt_repository` filename in Debian based distros. * Building OpenSSL from source should now work properly in CentOS 8.
20 lines
701 B
YAML
20 lines
701 B
YAML
---
|
|
- name: "(Setup: Linux) Setup NGINX Plus Repository"
|
|
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"
|
|
|
|
- name: "(Install: Linux) Modify Service for Systemd"
|
|
include_tasks: "{{ role_path }}/tasks/prerequisites/setup-systemd.yml"
|
|
when:
|
|
- ansible_service_mgr == "systemd"
|
|
- nginx_service_modify | bool
|
|
|
|
- name: "(Install: Linux) Install NGINX Plus"
|
|
package:
|
|
name: "nginx-plus{{ nginx_version | default('') }}"
|
|
state: "{{ nginx_state }}"
|
|
notify: "(Handler: All OSs) Start NGINX"
|