mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-28 09:22:10 +07:00
ccba8683903ae3e90e8131f6f06474283d0cfa39
Nginx for Debian Ansible role
Install and configure Nginx on Debian.
SSL management will come later.
Requirements
None. If you set true to nginx_backports, you must install backports repository before lauching this role.
Role Variables
Packaging
nginx_apt_package: APT nginx package (try: apt-cache search ^nginx)nginx_backports: Install nginx from backport repository (bool)
Shared
nginx_root: root directory where you want to have your filesnginx_log_dir: log directory (if you change it, don't forget to change logrotate config)nginx_resolver: list of DNS resolver (default: OpenDNS)nginx_error_log_level: default log level
Nginx Configuration
nginx_usernginx_worker_processesnginx_pid: daemon pid filenginx_events_*: all variables in events blocknginx_http_*: all variables in http blocknginx_custom_http: instructions list (will put data in/etc/nginx/conf.d/custom.conf)
Fine configuration
Dependencies
None
Example Playbook
See tests/test.yml.
License
GPLv2
Author Information
- Twitter: @hanxhx_
Languages
Jinja
88.5%
Python
11.5%