18 lines
619 B
YAML
18 lines
619 B
YAML
## DEPRECATED -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit)
|
|
---
|
|
- name: "(Debian/Ubuntu/CentOS/RedHat) Install NGINX Unit Modules"
|
|
package:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ nginx_unit_modules }}"
|
|
when: ansible_facts['os_family'] != "FreeBSD"
|
|
notify: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
|
|
|
|
- name: "(FreeBSD) Install NGINX Unit Modules"
|
|
portinstall:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop: "{{ nginx_unit_modules }}"
|
|
when: ansible_facts['os_family'] == "FreeBSD"
|
|
notify: "(Handler: FreeBSD) Start NGINX Unit"
|