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

30 lines
1.1 KiB
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)
2018-04-07 01:32:48 +02:00
---
2020-09-15 21:27:06 +02:00
- name: "Deprecation warning"
debug:
msg: "DEPRECATED TASKS -- Use nginxinc.nginx_unit role instead (https://github.com/nginxinc/ansible-role-nginx-unit)"
2018-07-18 23:59:14 +02:00
2020-09-15 21:27:06 +02:00
- name: "(DEPRECATED) Configure NGINX Unit Repository"
include_tasks: "{{ role_path }}/tasks/unit/setup-{{ ansible_facts['os_family'] | lower }}.yml"
when: ansible_facts['os_family'] == "Debian"
or ansible_facts['os_family'] == "RedHat"
or ansible_facts['os_family'] == "FreeBSD"
- name: "(DEPRECATED) Install NGINX Unit"
2018-04-07 01:32:48 +02:00
package:
name: unit
state: present
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: "(DEPRECATED) Install NGINX Unit"
2018-07-18 23:59:14 +02:00
portinstall:
name: unit
state: present
2020-09-15 21:27:06 +02:00
when: ansible_facts['os_family'] == "FreeBSD"
notify: "(DEPRECATED Handler: FreeBSD) Start NGINX Unit"
2018-04-07 01:32:48 +02:00
2020-09-15 21:27:06 +02:00
- name: "(DEPRECATED) Install NGINX Unit modules"
2020-08-19 18:39:17 +02:00
include_tasks: "{{ role_path }}/tasks/unit/install-modules.yml"
when: nginx_unit_modules is defined