2020-09-15 21:27:06 +02:00
|
|
|
## DEPRECATED -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit)
|
2018-07-12 20:19:17 +02:00
|
|
|
---
|
2020-09-15 21:27:06 +02:00
|
|
|
- name: "(Debian/Ubuntu/CentOS/RedHat) Install NGINX Unit Modules"
|
2018-06-27 22:16:57 +02:00
|
|
|
package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2020-07-08 14:55:15 +02:00
|
|
|
loop: "{{ nginx_unit_modules }}"
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['os_family'] != "FreeBSD"
|
2020-09-18 19:51:50 +02:00
|
|
|
notify: "(DEPRECATED Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
|
2018-07-18 23:59:14 +02:00
|
|
|
|
2020-09-15 21:27:06 +02:00
|
|
|
- name: "(FreeBSD) Install NGINX Unit Modules"
|
2018-07-18 23:59:14 +02:00
|
|
|
portinstall:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2020-07-08 14:55:15 +02:00
|
|
|
loop: "{{ nginx_unit_modules }}"
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['os_family'] == "FreeBSD"
|
2020-09-18 19:51:50 +02:00
|
|
|
notify: "(DEPRECATED Handler: FreeBSD) Start NGINX Unit"
|