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

17 lines
523 B
YAML
Raw Permalink Normal View History

---
2018-07-18 23:59:14 +02:00
- name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX Unit Modules"
package:
name: "{{ item }}"
state: present
2018-09-15 02:27:12 +02:00
with_items: "{{ nginx_unit_modules }}"
2018-07-18 23:59:14 +02:00
when: ansible_os_family != "FreeBSD"
notify: "(Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
- name: "(Install: FreeBSD) Install NGINX Unit Modules"
portinstall:
name: "{{ item }}"
state: present
2018-09-15 02:27:12 +02:00
with_items: "{{ nginx_unit_modules }}"
2018-07-18 23:59:14 +02:00
when: ansible_os_family == "FreeBSD"
notify: "(Handler: FreeBSD) Start NGINX Unit"