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-19 17:32:17 +02:00
|
|
|
- name: Deprecation warning
|
2020-09-15 21:27:06 +02:00
|
|
|
debug:
|
2020-09-19 17:32:17 +02:00
|
|
|
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-19 17:32:17 +02:00
|
|
|
- name: (DEPRECATED) Configure NGINX Unit Repository
|
2020-09-15 21:27:06 +02:00
|
|
|
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"
|
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- 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"
|
2020-09-19 17:32:17 +02:00
|
|
|
notify: (DEPRECATED Handler - Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit
|
2018-07-18 23:59:14 +02:00
|
|
|
|
2020-09-19 17:32:17 +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"
|
2020-09-19 17:32:17 +02:00
|
|
|
notify: (DEPRECATED Handler - FreeBSD) Start NGINX Unit
|
2018-04-07 01:32:48 +02:00
|
|
|
|
2020-09-19 17:32:17 +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
|