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:
|
|
|
|
- name: "Set module if Alpine"
|
|
|
|
set_fact:
|
|
|
|
module:
|
|
|
|
- "unit-perl"
|
|
|
|
- "unit-php7"
|
|
|
|
- "unit-python3"
|
|
|
|
when: ansible_os_family == "Alpine"
|
|
|
|
- name: "Set module if Debian/RedHat"
|
|
|
|
set_fact:
|
|
|
|
module:
|
|
|
|
- "unit-perl"
|
|
|
|
- "unit-php"
|
|
|
|
- "unit-ruby"
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
- name: "Set module if RedHat"
|
|
|
|
set_fact:
|
|
|
|
module:
|
|
|
|
- "unit-php"
|
|
|
|
- "unit-go"
|
|
|
|
when: ansible_os_family == "RedHat"
|
2018-06-27 01:41:35 +02:00
|
|
|
roles:
|
2019-08-03 12:53:21 +02:00
|
|
|
- role: ansible-role-nginx
|
2018-06-27 01:41:35 +02:00
|
|
|
vars:
|
2018-07-12 00:44:36 +02:00
|
|
|
nginx_enable: false
|
2018-09-15 01:28:20 +02:00
|
|
|
nginx_unit_enable: true
|
2019-11-24 02:10:55 +01:00
|
|
|
nginx_unit_modules: "{{ module }}"
|