Skip to content

Ansible Role: Install "Nginx Unit" server + compile modules

License

Notifications You must be signed in to change notification settings

danie1k/ansible-role-nginx-unit

Repository files navigation

nginx-unit

Build Status MIT License Ansible Galaxy

Installs NGINX Unit server.

Supported Languages

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