ansible-role-nginx/tasks/unit/install-modules.yml
Alessandro Fael Garcia 8b41c27cb5
Improve the error formatting when there's a syntax error (#324)
And remove the debug tasks messages.
2020-09-18 19:51:50 +02:00

18 lines
641 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: "(DEPRECATED 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: "(DEPRECATED Handler: FreeBSD) Start NGINX Unit"