mats116.nginx

README.md

Ansible Role: mats116.nginx

This Ansible role helps you install Nginx on Ubuntu 14.04 LTS.

Requirements

No special requirements needed.

Role Variables

Here are the variables you can use, along with their default settings:

  • nginx_version: "" (you can specify a version)

  • nginx_user: nginx

  • nginx_error_log_file: /var/log/nginx/error.log

  • nginx_error_log_level: warn

  • nginx_pid: /var/run/nginx.pid

  • nginx_worker_processes: auto (sets the number of worker processes)

  • nginx_worker_rlimit_nofile: 4096 (maximum open files)

  • nginx_worker_connections: 1024 (connections per worker)

  • nginx_keepalive_timeout: 180 (time to keep connections alive)

  • logrotate_file: "/var/log/nginx/*.log" (log files to rotate)

  • logrotate_period: 10 (frequency of log rotation)

Dependencies

No dependencies required.

Example Playbook

Here’s a sample of how to use it:

- hosts: web-server
  roles:
    - role: mats116.nginx
      nginx_version: "1.9.5"

License

MIT

Informazioni sul progetto

Nginx installer

Installa
ansible-galaxy install mats116.nginx
Licenza
Unknown
Download
328
Proprietario