NGINX Unit install role

This roles adds appropriate repositories to the system and installs NGINX Unit package along with user-customizable language packages.

Example playbook

The next playbook demonstrates how to install different versions of Unit that feature different application support.

---
- name: Install NGINX Unit
  hosts: all

  tasks:
    - name: Perfoms minimal Unit installation using latest available version
      include_role:
        name: steampunk.unit.install

    - name: Install specific Unit version with all language plugins (CentOS)
      include_role:
        name: steampunk.unit.install
      vars:
        app_languages:
          - go
          - jsc8
          - jsc11
          - perl
          - php
          - python27
          - python36

    - name: Install specific Unit version with all language plugins (Debian)
      include_role:
        name: steampunk.unit.install
      vars:
        app_languages:
          - go
          - jsc11
          - perl
          - php
          - python27
          - python37

Role Variables

This role consults the following variables to determine what packages to install:

Variable

Default value

Description

version

latest

Package version to install. Can be any valid version string such as 5.14.2 or special value latest.

build

latest

Package build to install. Can be any valid build string such as 8290 or a special value latest. If the version variable is set to latest, this variable is ignored and the latest available build is installed.

build

[]

Language support packages to install. See examples for list of valid values for each supported distribution.

Tested Platforms (CI/CD)

OS

distribution

versions

Linux

CentOS

7, 8

Debian

10