2018-06-27 01:41:35 +02:00
|
|
|
---
|
2019-08-03 12:53:21 +02:00
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
2019-11-24 02:10:55 +01:00
|
|
|
pre_tasks:
|
2020-08-19 18:39:17 +02:00
|
|
|
- name: Set module if Alpine
|
2019-11-24 02:10:55 +01:00
|
|
|
set_fact:
|
|
|
|
module:
|
2020-08-19 18:39:17 +02:00
|
|
|
- unit-perl
|
|
|
|
- unit-php7
|
|
|
|
- unit-python3
|
2019-11-24 02:10:55 +01:00
|
|
|
when: ansible_os_family == "Alpine"
|
2020-08-19 18:39:17 +02:00
|
|
|
- name: Set module if Debian/RedHat
|
2019-11-24 02:10:55 +01:00
|
|
|
set_fact:
|
|
|
|
module:
|
2020-08-19 18:39:17 +02:00
|
|
|
- unit-perl
|
|
|
|
- unit-php
|
|
|
|
- unit-ruby
|
2019-11-24 02:10:55 +01:00
|
|
|
when: ansible_os_family == "Debian"
|
2020-08-19 18:39:17 +02:00
|
|
|
- name: Set module if RedHat
|
2019-11-24 02:10:55 +01:00
|
|
|
set_fact:
|
|
|
|
module:
|
2020-08-19 18:39:17 +02:00
|
|
|
- unit-php
|
|
|
|
- unit-go
|
2019-11-24 02:10:55 +01:00
|
|
|
when: ansible_os_family == "RedHat"
|
2020-08-19 18:39:17 +02:00
|
|
|
tasks:
|
|
|
|
- name: Install NGINX Unit
|
|
|
|
include_role:
|
|
|
|
name: ansible-role-nginx
|
|
|
|
vars:
|
|
|
|
nginx_enable: false
|
|
|
|
nginx_unit_enable: true
|
|
|
|
nginx_unit_modules: "{{ module }}"
|