novuso.nginx

Ansible Role: Nginx

Ansible Galaxy MIT License Build Status

An Ansible role that manages Nginx on Ubuntu 14.04

Requirements

None

Role Variables

TODO

Dependencies

None

Example Playbook

---
- hosts: all
  vars:
  - nginx_server_configs:
    - name: "project"
      servers:
      - listen: ["80 default_server"]
        server_name: "project.dev"
        root: "/var/www/html"
        index: "index.html index.htm"
        charset: "utf-8"
        access_log: "/var/log/nginx/project.log"
        error_log: "/var/log/nginx/project-error.log error"
        includes: ["h5bp/basic.conf"]
        locations:
        - match: "= /favicon.ico"
          access_log: "off"
          log_not_found: "off"
        - match: "= /robots.txt"
          access_log: "off"
          log_not_found: "off"
        - match: "/"
          try_files: "$uri $uri/ =404"
  roles:
  - novuso.nginx

License

This is released under the MIT license.

About

Nginx HTTP server for Ubuntu 14.04

Install
ansible-galaxy install novuso.nginx
GitHub repository
License
mit
Downloads
72
Owner