Skip to content

dgnest/ansible-role-nginx

Repository files navigation

Ansible Role: Nginx

Build Status GitHub issues GitHub license

Installs and configures nginx on a host.

Requirements

  • Linux
    • none
  • OSX

Role Variables

The default role variables in defaults/main.yml are:

---
# defaults file for nginx
nginx_keepalive_timeout: "65"
nginx_keepalive_requests: "1000"

nginx_client_max_body_size: "64m"
nginx_client_body_timeout: "3m"
nginx_client_header_timeout: "3m"

nginx_server_names_hash_bucket_size: "64"

Dependencies

none

Example Playbook

See the examples directory.

To run this playbook with default settings, create a basic playbook like this:

- hosts: servers
  roles:
     - nginx

To install a specific version:

- hosts: servers
  roles:
     - { role: dgnest.nginx }

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Made with ❤️ ️☕️ and 🍕 by dgnest.