2016-01-12 14:40:09 +01:00
2016-01-12 12:14:36 +01:00
2016-01-12 12:14:36 +01:00
2015-07-15 15:42:32 +02:00
2015-11-03 14:38:47 +01:00
2015-11-03 14:45:01 +01:00
2016-01-12 14:40:09 +01:00
2016-01-12 11:16:41 +01:00
2016-01-11 18:20:42 +01:00
2016-01-12 11:16:41 +01:00
2015-07-15 12:14:39 +02:00
2015-10-07 19:31:12 +02:00
2015-07-15 12:12:06 +02:00
2016-01-12 12:14:36 +01:00
2015-12-01 16:26:16 +01:00

Nginx for Debian Ansible role

Ansible Galaxy Build Status

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 files
  • nginx_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_user
  • nginx_worker_processes
  • nginx_pid: daemon pid file
  • nginx_events_*: all variables in events block
  • nginx_http_*: all variables in http block
  • nginx_custom_http: instructions list (will put data in /etc/nginx/conf.d/custom.conf)

Fine configuration

Vhost configuration

PHP configuration

Upstream Configuration

Vhost configuration

SSL/TLS Configuration

Basic Auth

Dependencies

None

Example Playbook

See tests/test.yml.

License

GPLv2

Author Information

Description
Mirror HanXHX/ansible-nginx dari GitHub.
Readme GPL-2.0 646 KiB
Languages
Jinja 88.5%
Python 11.5%