Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danie1k/ansible-role-nginx-unit
Ansible Role: Install "Nginx Unit" server + compile modules
https://github.com/danie1k/ansible-role-nginx-unit
ansible ansible-galaxy ansible-role nginx nginx-proxy nginx-unit proxy-server python wsgi
Last synced: 22 days ago
JSON representation
Ansible Role: Install "Nginx Unit" server + compile modules
- Host: GitHub
- URL: https://github.com/danie1k/ansible-role-nginx-unit
- Owner: danie1k
- License: mit
- Created: 2020-05-02T15:22:03.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2020-07-16T10:54:38.000Z (over 4 years ago)
- Last Synced: 2024-10-03T11:41:58.288Z (about 1 month ago)
- Topics: ansible, ansible-galaxy, ansible-role, nginx, nginx-proxy, nginx-unit, proxy-server, python, wsgi
- Homepage: https://galaxy.ansible.com/danie1k/nginx_unit
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nginx-unit
==========[![Build Status](https://img.shields.io/travis/danie1k/ansible-role-nginx-unit)][1]
[![MIT License](https://img.shields.io/github/license/danie1k/ansible-role-nginx-unit)][2]
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-nginx__unit-660198.svg)][3]Installs [NGINX Unit](https://unit.nginx.org/) server.
Supported Languages
-------------------* **Python**
Currently role supports only Python installed via [pyenv](https://github.com/pyenv/pyenv) (for example using [avanov.pyenv](https://galaxy.ansible.com/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](https://galaxy.ansible.com/avanov/pyenv), set the `pyenv_python_configure_opts: "--enable-shared"` var, before running role._
* To **automatically** compile modules for **all** installed Python versions, set `pyenv_path` variable value.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
----------------```yaml
- hosts: servers
roles:
- name: danie1k.nginx_unit
vars:
pyenv_path: /usr/local/pyenv
```License
-------MIT
[1]: http://travis-ci.org/danie1k/ansible-role-nginx-unit
[2]: https://github.com/danie1k/ansible-role-nginx-unit/blob/master/LICENSE
[3]: https://galaxy.ansible.com/danie1k/nginx_unit