Installs NGINX Unit server.
-
Python
Currently role supports only Python installed via pyenv (for example using avanov.pyenv role).- To properly build Nginx Unit modules, Python must be compiled with
--enable-shared
flag (https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with---enable-shared).
When using avanov.pyenv, set thepyenv_python_configure_opts: "--enable-shared"
var, before running role. - To automatically compile modules for all installed Python versions, set
pyenv_path
variable value.
- To properly build Nginx Unit modules, Python must be compiled with
Variable name | Description | Default value |
---|---|---|
pyenv_path | Absolute path to pyenv installation directory | `` |
nginx_unitd_daemon | Run in daemon mode | false |
nginx_unitd_control | Address of control API socket | unix:/run/unit/control.sock |
nginx_unitd_pid | PID filename | /run/unit/unit.pid |
nginx_unitd_log | Log filename | /var/log/unit/unit.log |
nginx_unitd_modules | Modules directory name | /usr/lib64/unit/modules |
nginx_unitd_state | State directory name | /var/lib/unit |
nginx_unitd_user | Non-privileged processes to run as specified user | nobody |
nginx_unitd_group | Non-privileged processes to run as specified group | user's primary group |
- hosts: servers
roles:
- name: danie1k.nginx_unit
vars:
pyenv_path: /usr/local/pyenv
MIT