danie1k.nginx_unit
nginx-unit
Installs NGINX Unit server.
Supported Languages
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-sharedflag (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_pathvariable value.
- To properly build Nginx Unit modules, Python must be compiled with
Role Variables
| 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 |
Example Playbook
- hosts: servers
roles:
- name: danie1k.nginx_unit
vars:
pyenv_path: /usr/local/pyenv
License
MIT
Install
ansible-galaxy install danie1k.nginx_unitLicense
mit
Downloads
49
Owner
Python, Ansible, Docker, AWS, PHP, MySQL, Bash
