ansible-role-nginx/tasks/unit/install-modules.yml

18 lines
641 B
YAML
Raw Normal View History

2020-09-15 21:27:06 +02:00
## DEPRECATED -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit)
---
2020-09-15 21:27:06 +02:00
- name: "(Debian/Ubuntu/CentOS/RedHat) Install NGINX Unit Modules"
package:
name: "{{ item }}"
state: present
loop: "{{ nginx_unit_modules }}"
2020-09-15 21:27:06 +02:00
when: ansible_facts['os_family'] != "FreeBSD"
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
loop: "{{ nginx_unit_modules }}"
2020-09-15 21:27:06 +02:00
when: ansible_facts['os_family'] == "FreeBSD"
notify: "(DEPRECATED Handler: FreeBSD) Start NGINX Unit"