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

16 lines
349 B
YAML
Raw Normal View History

2018-04-07 01:32:48 +02:00
---
- import_tasks: setup-debian.yml
when: ansible_os_family == "Debian"
- import_tasks: setup-redhat.yml
when: ansible_os_family == "RedHat"
- name: "(Install: All OSs) Install NGINX Unit"
package:
name: unit
state: present
notify: "(Handler: All OSs) Start NGINX Unit"
- import_tasks: install-packages.yml
when: unit_packages